From e1f0ac0bd045a06ec7534ea802fddac95638b10c Mon Sep 17 00:00:00 2001 From: Palana Date: Sat, 27 Jun 2015 03:34:08 +0200 Subject: [PATCH] UI: Ignore source deselect events for now Also ensure only a single source is selected if it's an update from libobs --- obs/window-basic-main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 5ed30a6cd..5e747b34b 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -1219,11 +1219,9 @@ void OBSBasic::SelectSceneItem(OBSScene scene, OBSSceneItem item, bool select) if (item != data.value()) continue; - if (select) { - ui->sources->setCurrentItem(witem); - } else if (ui->sources->currentItem() == witem) { - ui->sources->setCurrentItem(nullptr); - } + if (select) + ui->sources->setCurrentItem(witem, + QItemSelectionModel::ClearAndSelect); break; }