Commit bde2a991 authored by Laurent Montel's avatar Laurent Montel 😁

Add support for preferred

parent 2287af31
......@@ -21,7 +21,8 @@
using namespace KAddressBookGrantlee;
ContactGrantleePrintWebSite::ContactGrantleePrintWebSite(const KContacts::ResourceLocatorUrl &resourceLocator, QObject *parent)
: QObject(parent)
: QObject(parent),
......@@ -38,6 +39,7 @@ QString ContactGrantleePrintWebSite::url() const
bool ContactGrantleePrintWebSite::preferred() const
return false;
const QStringList value = mResourceLocator.parameters().value(QStringLiteral("type"));
//Validate PREF and pref
return value.contains(QStringLiteral("pref"), Qt::CaseInsensitive);
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