summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2015-10-25 02:56:37 +0100
committerAnne Jan Brouwer <brouwer@annejan.com>2015-10-25 02:56:37 +0100
commit3aa349700ff397bf162e7551bf7256552cd71103 (patch)
tree304e2d4c3bb9ea4be754d3cc8690dca70fd35c16
parented6ddf844ed57faf8952494cf2a67f6d17c137b2 (diff)
Templating turned of for urls by default for editing too
-rw-r--r--passworddialog.cpp3
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);