Skip to content

Commit

Permalink
Fixing crash when deselecting fixtures (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
aroffringa authored Oct 10, 2019
1 parent 7d279f5 commit a07671e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions gui/fixturelistwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,15 @@ void FixtureListWindow::onGlobalSelectionChange()
{
RecursionLock::Token token(_recursionLock);
_fixturesListView.get_selection()->unselect_all();
for(auto& child : _fixturesListModel->children())
if(!_globalSelection->Selection().empty())
{
if(child[_fixturesListColumns._fixture] == _globalSelection->Selection().front())
for(auto& child : _fixturesListModel->children())
{
_fixturesListView.get_selection()->select(child);
break;
if(child[_fixturesListColumns._fixture] == _globalSelection->Selection().front())
{
_fixturesListView.get_selection()->select(child);
break;
}
}
}
}
Expand Down

0 comments on commit a07671e

Please sign in to comment.