Skip to content

Commit

Permalink
Fix crash when closing OBS
Browse files Browse the repository at this point in the history
  • Loading branch information
cg2121 committed Sep 4, 2022
1 parent 0590ba1 commit 6db11dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene-tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,6 @@ void SceneTree::rowsInserted(const QModelIndex &parent, int start, int end)
void SceneTree::selectionChanged(const QItemSelection &selected,
const QItemSelection &deselected)
{
if (selected.count() == 0)
if (selected.count() == 0 && deselected.count() > 0)
setCurrentRow(deselected.indexes().front().row());
}

0 comments on commit 6db11dd

Please sign in to comment.