From 85dd83ca6918b8ad94a301237b7912e7e556a6e8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 10 Aug 2016 18:14:39 +0200 Subject: gui/main: display exit messages to debug what destructor is called where --- gui/main.cpp | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'gui') diff --git a/gui/main.cpp b/gui/main.cpp index 7adb7a7d..f2688302 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -16,6 +16,7 @@ using namespace options; #include #include #include +#include #include #include @@ -130,16 +131,26 @@ int main(int argc, char** argv) MainWindow::set_working_directory(); - mem w = std::make_shared(); - - if (!w->is_tray_enabled()) - w->show(); - else { - w->setVisible(false); - w->setHidden(true); + mem w = std::make_shared(); + + if (!w->is_tray_enabled()) + { + w->setHidden(false); + w->show(); + } + else + { + w->setVisible(false); + w->setHidden(true); + } + + app.exec(); + + qDebug() << "exit: now deleting main control"; } - app.exec(); + + qDebug() << "exit: main() now exits"; return 0; } -- cgit v1.2.3