From 5ec97c7bcf1d6249989cc5b836288703ec5e3e8d Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Wed, 18 Nov 2015 11:12:33 +0100 Subject: Correct \n (it was late) and always add default template if none is set --- mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)) { -- cgit v1.2.3