diff options
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 762e4e55..b1e0a502 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -233,11 +233,8 @@ bool MainWindow::checkConfig() { } // Config updates - if (version != VERSION) { - qDebug() << "Config update from version " + version; - // QStringList ver = version.split("."); - // qDebug() << ver; - // worry ^ about that next time, since this is first implement + if (version.isEmpty()) { + qDebug() << "assuming fresh install"; if (autoclearSeconds < 5) { autoclearSeconds = 10; } @@ -248,8 +245,16 @@ bool MainWindow::checkConfig() { } else { usePwgen = false; } + } else { + QStringList ver = version.split("."); + qDebug() << ver; + if (ver[0] == "0" && ver[1] == "8") { + // upgrade to 0.9 + } } + settings.setValue("version", VERSION); + firstRun = false; // TODO: this needs to be before we try to access the store, |