Commit 702d8017 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't add type if type is empty

parent 71c2f793
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment