summaryrefslogtreecommitdiffhomepage
path: root/gui/init.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-14 00:07:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-14 00:09:11 +0100
commitae4b33c18ae359fd378fc30dd6af8181fb916675 (patch)
treea6b732f88b28650caa171788c16fd40dc933735a /gui/init.cpp
parent3e64bb198781eda1ac6ca0b39c7c3a3d249548b5 (diff)
gui: fix tray
Diffstat (limited to 'gui/init.cpp')
-rw-r--r--gui/init.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/gui/init.cpp b/gui/init.cpp
index 7ccc67fe..a53df491 100644
--- a/gui/init.cpp
+++ b/gui/init.cpp
@@ -160,12 +160,11 @@ int run_window(QApplication& app, std::unique_ptr<QWidget> main_window)
return 2;
}
- app.setQuitOnLastWindowClosed(false);
+ app.setQuitOnLastWindowClosed(true);
+ int status = app.exec();
- int ret = app.exec();
- qDebug() << "exit" << ret;
-
- return ret;
+ qDebug() << "exit status:" << status;
+ return status;
}
int otr_main(int argc, char** argv, std::function<QWidget*()> make_main_window)