diff options
author | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-05-19 00:22:18 +0200 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-05-19 00:22:18 +0200 |
commit | a6d7281a4d1013d024b8570f475b40b3e31d7ca3 (patch) | |
tree | ab82feb4e5cd27adac6d697d5e5d7bbba01381b1 /main.cpp | |
parent | 540c285a65761783e7f5125ec1867813e266030c (diff) |
clean quit on canceling out of wizard
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -41,9 +41,12 @@ int main(int argc, char *argv[]) app.setActiveWindow(&w); app.setWindowIcon(QIcon(":artwork/icon.png")); w.setApp(&app); - w.checkConfig(); - w.setText(text); - w.show(); - - return app.exec(); + if (w.checkConfig()) { + w.setText(text); + w.show(); + return app.exec(); + } else { + // canceled out of wizard + return 0; + } } |