diff --git a/gui/newgui.cpp b/gui/newgui.cpp index ec7fb3802da..f280b308c7e 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();