Skip to content

Commit

Permalink
Gui: fix recursive selection notification
Browse files Browse the repository at this point in the history
Fixes #557
Fixes #710
  • Loading branch information
realthunder committed Aug 28, 2024
1 parent 0dcd00b commit b50ff63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gui/Selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ void SelectionSingleton::notify(SelectionChanges &&Chng)
Base::FlagToggler<bool> flag(Notifying);
NotificationQueue.push_back(std::move(Chng));
while(!NotificationQueue.empty()) {
const auto &msg = NotificationQueue.front();
auto msg = NotificationQueue.front();
NotificationQueue.pop_front();
bool notify;
switch(msg.Type) {
case SelectionChanges::AddSelection:
Expand Down Expand Up @@ -548,7 +549,6 @@ void SelectionSingleton::notify(SelectionChanges &&Chng)
Base::Console().Warning("notify: Unexpected boost exception\n");
}
}
NotificationQueue.pop_front();
}
NotificationRecursion = 0;
}
Expand Down

0 comments on commit b50ff63

Please sign in to comment.