diff options
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 7d50c489..eff79ec1 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -268,7 +268,7 @@ bool MainWindow::checkConfig() { } else { usePwgen = false; } - passTemplate = "login/nurl"; + passTemplate = "login\nurl"; } else { // QStringList ver = version.split("."); // qDebug() << ver; @@ -278,7 +278,11 @@ bool MainWindow::checkConfig() { if (passwordChars.isEmpty()) { passwordChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&*()_-+={}[]|:;<>,.?"; } + if (passTemplate.isEmpty()) { + passTemplate = "login\nurl"; + } } + settings.setValue("version", VERSION); if (Util::checkConfig(passStore, passExecutable, gpgExecutable)) { |