From 38d8340afeb576521675f401cd5e097841dd1081 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 28 Sep 2015 20:06:47 +0200 Subject: Actually close the (in STANDALONE mode) application when the window is closed. --- plugingui/plugingui.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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(); -- cgit v1.2.3