summaryrefslogtreecommitdiffstats
path: root/passworddialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'passworddialog.cpp')
-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);