From ea145f8c1cc188f20e066af78e4167036b3993de Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 27 Feb 2017 10:55:43 +0100 Subject: gui/main: reindent --- gui/main.cpp | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'gui') diff --git a/gui/main.cpp b/gui/main.cpp index d9aba3ce..efc0b12b 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -151,25 +151,27 @@ main(int argc, char** argv) (void) QCoreApplication::installTranslator(&t); } - do - { - mem w = std::make_shared(); + do + { + mem w = std::make_shared(); - if (!w->isEnabled()) - break; + if (!w->isEnabled()) + break; - if (!w->start_in_tray()) - { - w->setVisible(true); - w->show(); - } - else - w->setVisible(false); + if (!w->start_in_tray()) + { + w->setVisible(true); + w->show(); + } + else + w->setVisible(false); + + app.setQuitOnLastWindowClosed(false); + app.exec(); - app.setQuitOnLastWindowClosed(false); - app.exec(); + app.exit(0); - qDebug() << "exit: window"; + qDebug() << "exit: window"; } while (false); -- cgit v1.2.3