diff --git a/UI/source-tree.cpp b/UI/source-tree.cpp index 43d894838..91e83bb9a 100644 --- a/UI/source-tree.cpp +++ b/UI/source-tree.cpp @@ -1154,7 +1154,7 @@ void SourceTree::SelectItem(obs_sceneitem_t *sceneitem, bool select) return; QModelIndex index = stm->createIndex(i, 0); - if (index.isValid()) + if (index.isValid() && select != selectionModel()->isSelected(index)) selectionModel()->select( index, select ? QItemSelectionModel::Select : QItemSelectionModel::Deselect);