Skip to content

Commit

Permalink
Correct \n (it was late) and always add default template if none is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Jan Brouwer committed Nov 18, 2015
1 parent 107dbff commit 5ec97c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ bool MainWindow::checkConfig() {
} else {
usePwgen = false;
}
passTemplate = "login/nurl";
passTemplate = "login\nurl";
} else {
// QStringList ver = version.split(".");
// qDebug() << ver;
Expand All @@ -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)) {
Expand Down

0 comments on commit 5ec97c7

Please sign in to comment.