aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/newgui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index ec7fb3802d..f280b308c7 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -116,7 +116,7 @@ void NewGui::runLoop()
didSaveState = true;
}
- while (activeDialog == _dialogStack.top()) {
+ while (!_dialogStack.empty() && activeDialog == _dialogStack.top()) {
activeDialog->handleTickle();