diff options
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 7397dbf2..25d5e5ac 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -210,14 +210,6 @@ bool MainWindow::checkConfig() { settings.endGroup(); useGit = (settings.value("useGit") == "true"); - - if (Util::checkConfig(passStore, passExecutable, gpgExecutable)) { - config(); - if (freshStart && Util::checkConfig(passStore, passExecutable, gpgExecutable)) { - return false; - } - } - usePwgen = (settings.value("usePwgen") == "true"); useSymbols = (settings.value("useSymbols") == "true"); passwordLength = settings.value("passwordLength").toInt(); @@ -232,6 +224,8 @@ bool MainWindow::checkConfig() { destroyTrayIcon(); } + //qDebug() << version; + // Config updates if (version.isEmpty()) { qDebug() << "assuming fresh install"; @@ -255,6 +249,13 @@ bool MainWindow::checkConfig() { settings.setValue("version", VERSION); + if (Util::checkConfig(passStore, passExecutable, gpgExecutable)) { + config(); + if (freshStart && Util::checkConfig(passStore, passExecutable, gpgExecutable)) { + return false; + } + } + freshStart = false; // TODO: this needs to be before we try to access the store, |