Skip to content

Commit

Permalink
Templating turned of for urls by default for editing too
Browse files Browse the repository at this point in the history
  • Loading branch information
annejan committed Oct 25, 2015
1 parent 05ec388 commit 6a892e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions passworddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6a892e0

Please sign in to comment.