diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-10-25 02:56:37 +0100 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-10-25 02:56:37 +0100 |
commit | 6a892e00b885366de0cceed95532ef5ecb8728b8 (patch) | |
tree | 304e2d4c3bb9ea4be754d3cc8690dca70fd35c16 | |
parent | 05ec38874efdb5043dbfc19a3400bf233500841e (diff) |
Templating turned of for urls by default for editing too
-rw-r--r-- | passworddialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/passworddialog.cpp b/passworddialog.cpp index 3b102d3c..18da581c 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); |