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
commited6ddf844ed57faf8952494cf2a67f6d17c137b2 (patch)
treec50c7e2720412ba7fa94747ee24e02e7cf6d88a0
parent249562578a9eb82d33997ae3be1fe2a92fff1dae (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);