summaryrefslogtreecommitdiffhomepage
path: root/gui/init.cpp
diff options
context:
space:
mode:
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)