From bab21888f389cf16c2966d9c7a099682dd6f4974 Mon Sep 17 00:00:00 2001 From: Clayton Groeneveld Date: Sat, 10 Apr 2021 07:43:04 -0500 Subject: [PATCH] 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. --- UI/window-basic-main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index b71b6eac6..9ed75982f 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -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);