summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2015-10-25 02:47:56 +0100
committerAnne Jan Brouwer <brouwer@annejan.com>2015-10-25 02:47:56 +0100
commit05ec38874efdb5043dbfc19a3400bf233500841e (patch)
treec50c7e2720412ba7fa94747ee24e02e7cf6d88a0
parent321f6887d07e389c8ffae537fb4fe98176623b6f (diff)
Don't template urls
-rw-r--r--mainwindow.cpp3
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);