aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-22 05:44:11 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-22 05:46:19 (GMT)
commit82985d3b02c31302fd33197ffbcc21cee2960ffe (patch)
tree04330aeb863f39f13d720c80cfa5fa17a564b0ef
parent9764181593d6fc2de82f341d2f101433870d9156 (diff)
Don't add type if type is empty
-rw-r--r--src/editor/generalinfoeditor/web/webwidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/editor/generalinfoeditor/web/webwidget.cpp b/src/editor/generalinfoeditor/web/webwidget.cpp
index 3026e8c..a182679 100644
--- a/src/editor/generalinfoeditor/web/webwidget.cpp
+++ b/src/editor/generalinfoeditor/web/webwidget.cpp
@@ -132,7 +132,9 @@ KContacts::ResourceLocatorUrl WebWidget::url()
value.removeAll(QStringLiteral("PREF"));
}
}
- parameters.insert(QStringLiteral("type"), value);
+ if (!value.isEmpty()) {
+ parameters.insert(QStringLiteral("type"), value);
+ }
mUrl.setParameters(parameters);
return mUrl;
}