summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <annejan@noprotocol.com>2015-11-18 11:12:33 +0100
committerAnne Jan Brouwer <annejan@noprotocol.com>2015-11-18 11:12:33 +0100
commit5ec97c7bcf1d6249989cc5b836288703ec5e3e8d (patch)
tree83ccb680507e4f845065f9536c2b9bba48b40c4a
parent107dbffcf0d214a060e2d1820ae70b869739f77f (diff)
Correct \n (it was late) and always add default template if none is setv1.0.5
-rw-r--r--mainwindow.cpp6
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)) {