summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <annejan@noprotocol.com>2015-05-19 00:22:18 +0200
committerAnne Jan Brouwer <annejan@noprotocol.com>2015-05-19 00:22:18 +0200
commita6d7281a4d1013d024b8570f475b40b3e31d7ca3 (patch)
treeab82feb4e5cd27adac6d697d5e5d7bbba01381b1 /main.cpp
parent540c285a65761783e7f5125ec1867813e266030c (diff)
clean quit on canceling out of wizard
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 7106d8c3..9def9777 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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;
+ }
}