summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-09-28 20:06:47 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-09-28 20:06:47 +0200
commit38d8340afeb576521675f401cd5e097841dd1081 (patch)
treed935c50f43b57f44f62e12da0d40813efa481939
parentbf72f82495542f7e052978b7135fc312ede8eec4 (diff)
Actually close the (in STANDALONE mode) application when the window is closed.
-rw-r--r--plugingui/plugingui.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugingui/plugingui.cc b/plugingui/plugingui.cc
index da18f71..0a68d72 100644
--- a/plugingui/plugingui.cc
+++ b/plugingui/plugingui.cc
@@ -203,6 +203,13 @@ void PluginGUI::thread_main()
window->eventHandler()->processEvents();
handleMessages();
+
+#ifdef STANDALONE
+ if(closing) {
+ if(windowClosedHandler) windowClosedHandler(windowClosedPtr);
+ break;
+ }
+#endif
}
deinit();