mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-05 03:46:58 -04:00
UI: Ignore source deselect events for now
Also ensure only a single source is selected if it's an update from libobs
This commit is contained in:
1 parent
66fd1b2e80
commit
e1f0ac0bd0
1 file changed
+3
-5
@@ -1219,11 +1219,9 @@ void OBSBasic::SelectSceneItem(OBSScene scene, OBSSceneItem item, bool select)
|
||||
if (item != data.value<OBSSceneItem>())
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user