summaryrefslogtreecommitdiffstats
path: root/pica-client/main.cpp
diff options
context:
space:
mode:
authorAnton <anton@picapica>2016-09-15 19:50:24 +0400
committerAnton <anton@picapica>2016-09-15 19:50:24 +0400
commit57075f0806f1fcdeef1b5dad8ac4cf61ec7da6e7 (patch)
tree9a8b5fd047a64c94f689951ed957effa41fee8ac /pica-client/main.cpp
parentaa169097397a8a168ca9309b3602932865a65be4 (diff)
downloadpica-pica-57075f0806f1fcdeef1b5dad8ac4cf61ec7da6e7.tar.gz
pica-pica-57075f0806f1fcdeef1b5dad8ac4cf61ec7da6e7.zip
show settings dialog on first start
Diffstat (limited to 'pica-client/main.cpp')
-rw-r--r--pica-client/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/pica-client/main.cpp b/pica-client/main.cpp
index 99a19f2..1441b5c 100644
--- a/pica-client/main.cpp
+++ b/pica-client/main.cpp
@@ -14,6 +14,8 @@
#include <QIcon>
#include "../PICA_client.h"
#include "dhparam.h"
+#include "settings.h"
+#include "dialogs/settingsdialog.h"
//globals
QString config_dir;
@@ -493,6 +495,15 @@ int main(int argc, char *argv[])
picapica_ico_fly = QIcon("share\\picapica-icon-fly.png");
#endif
+ Settings st(config_dbname);
+
+ if (st.isEmpty()) //show settings dialog on first start
+ {
+ SettingsDialog sd;
+
+ sd.exec();
+ }
+
PicaActionCenter ac;
action_center = &ac;