diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-09-28 20:06:47 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-09-28 20:06:47 +0200 |
commit | 38d8340afeb576521675f401cd5e097841dd1081 (patch) | |
tree | d935c50f43b57f44f62e12da0d40813efa481939 | |
parent | bf72f82495542f7e052978b7135fc312ede8eec4 (diff) |
Actually close the (in STANDALONE mode) application when the window is closed.
-rw-r--r-- | plugingui/plugingui.cc | 7 |
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(); |