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 | 3aa349700ff397bf162e7551bf7256552cd71103 (patch) | |
tree | 304e2d4c3bb9ea4be754d3cc8690dca70fd35c16 /passworddialog.cpp | |
parent | ed6ddf844ed57faf8952494cf2a67f6d17c137b2 (diff) |
Templating turned of for urls by default for editing too
Diffstat (limited to 'passworddialog.cpp')
-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); |