diff options
| author | Anton <anton@picapica> | 2016-09-15 19:50:24 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2016-09-15 19:50:24 +0400 |
| commit | 57075f0806f1fcdeef1b5dad8ac4cf61ec7da6e7 (patch) | |
| tree | 9a8b5fd047a64c94f689951ed957effa41fee8ac /pica-client/main.cpp | |
| parent | aa169097397a8a168ca9309b3602932865a65be4 (diff) | |
| download | pica-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.cpp | 11 |
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 = ∾ |
