mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
UI: Fix reordering scenes not working properly
If the user were reordering scenes, the preview scene would change to a different one, than the one they were currently on.
This commit is contained in:
parent
bb0dff60ab
commit
bab21888f3
@ -4952,12 +4952,12 @@ void OBSBasic::ChangeSceneIndex(bool relative, int offset, int invalidIdx)
|
||||
if (idx == -1 || idx == invalidIdx)
|
||||
return;
|
||||
|
||||
ui->scenes->blockSignals(true);
|
||||
QListWidgetItem *item = ui->scenes->takeItem(idx);
|
||||
|
||||
if (!relative)
|
||||
idx = 0;
|
||||
|
||||
ui->scenes->blockSignals(true);
|
||||
ui->scenes->insertItem(idx + offset, item);
|
||||
ui->scenes->setCurrentRow(idx + offset);
|
||||
item->setSelected(true);
|
||||
|
Loading…
Reference in New Issue
Block a user