Permalink
Browse files

Correct \n (it was late) and always add default template if none is set

  • Loading branch information...
annejan committed Nov 18, 2015
1 parent 107dbff commit 5ec97c7bcf1d6249989cc5b836288703ec5e3e8d
Showing with 5 additions and 1 deletion.
  1. +5 −1 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)) {

0 comments on commit 5ec97c7

Please sign in to comment.