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; }