diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-10-25 02:47:56 +0100 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-10-25 02:47:56 +0100 |
commit | 05ec38874efdb5043dbfc19a3400bf233500841e (patch) | |
tree | c50c7e2720412ba7fa94747ee24e02e7cf6d88a0 | |
parent | 321f6887d07e389c8ffae537fb4fe98176623b6f (diff) |
Don't template urls
-rw-r--r-- | mainwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 8ed4f301..1782f5fa 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -693,6 +693,9 @@ void MainWindow::readyRead(bool finished = false) { QString field = token.left(colon); if (templateAllFields || passTemplate.contains(field)) { 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); |