summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-27 10:55:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-27 10:55:43 +0100
commitea145f8c1cc188f20e066af78e4167036b3993de (patch)
tree9720b5b947b917e9b80b17a00d26d06325cbb914 /gui
parent1b01642dda7ae8bbf3e74a979ffcf7941a8ae2b9 (diff)
gui/main: reindent
Diffstat (limited to 'gui')
-rw-r--r--gui/main.cpp32
1 files changed, 17 insertions, 15 deletions
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<MainWindow> w = std::make_shared<MainWindow>();
+ do
+ {
+ mem<MainWindow> w = std::make_shared<MainWindow>();
- 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);