From 6a892e00b885366de0cceed95532ef5ecb8728b8 Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Sun, 25 Oct 2015 02:56:37 +0100 Subject: [PATCH] Templating turned of for urls by default for editing too --- passworddialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passworddialog.cpp b/passworddialog.cpp index 3b102d3c2..18da581c8 100644 --- a/passworddialog.cpp +++ b/passworddialog.cpp @@ -61,6 +61,9 @@ void PasswordDialog::setPassword(QString password) int colon = token.indexOf(':'); QString field = token.left(colon); QString value = token.right(token.length()-colon-1); + if (!passTemplate.contains(field) && value.startsWith("//")) { + continue; // colon is probably from a url + } QLineEdit *line = new QLineEdit(); line->setObjectName(field); line->setText(value);