UI: Fix multiview update regression

Fixes bug where multiview won't update when reordering scenes with drag
and drop. Was originally fixed with #2114, but bcddf4d caused a
regression where it didn't work anymore.
This commit is contained in:
Clayton Groeneveld
2020-08-21 03:39:42 -05:00
committed by jp9000
parent 27169f0d2e
commit f580de0bc7
4 changed files with 14 additions and 16 deletions

View File

@@ -408,11 +408,8 @@ OBSBasic::OBSBasic(QWidget *parent)
connect(ui->enablePreviewButton, SIGNAL(clicked()), this,
SLOT(TogglePreview()));
connect(ui->scenes->model(),
SIGNAL(rowsMoved(QModelIndex, int, int, QModelIndex, int)),
this,
SLOT(ScenesReordered(const QModelIndex &, int, int,
const QModelIndex &, int)));
connect(ui->scenes, SIGNAL(scenesReordered()), this,
SLOT(ScenesReordered()));
}
static void SaveAudioDevice(const char *name, int channel, obs_data_t *parent,
@@ -8232,15 +8229,8 @@ void OBSBasic::CheckDiskSpaceRemaining()
}
}
void OBSBasic::ScenesReordered(const QModelIndex &parent, int start, int end,
const QModelIndex &destination, int row)
void OBSBasic::ScenesReordered()
{
UNUSED_PARAMETER(parent);
UNUSED_PARAMETER(start);
UNUSED_PARAMETER(end);
UNUSED_PARAMETER(destination);
UNUSED_PARAMETER(row);
OBSProjector::UpdateMultiviewProjectors();
}