diff --git a/src/knotification.cpp b/src/knotification.cpp --- a/src/knotification.cpp +++ b/src/knotification.cpp @@ -52,7 +52,6 @@ ContextList contexts; NotificationFlags flags; QString componentName; - QList urls; KNotification::Urgency urgency; QVariantMap hints; @@ -272,20 +271,12 @@ QList KNotification::urls() const { - return d->urls; + return QUrl::fromStringList(d->hints[QStringLiteral("x-kde-urls")].toStringList()); } void KNotification::setUrls(const QList &urls) { - if (d->urls == urls) { - return; - } - - d->needUpdate = true; - d->urls = urls; - if (d->id >= 0) { - d->updateTimer.start(); - } + setHint(QStringLiteral("x-kde-urls"), QUrl::toStringList(urls)); } KNotification::Urgency KNotification::urgency() const diff --git a/src/notifybypopup.cpp b/src/notifybypopup.cpp --- a/src/notifybypopup.cpp +++ b/src/notifybypopup.cpp @@ -643,10 +643,6 @@ hintsMap[QStringLiteral("x-kde-skipGrouping")] = 1; } - if (!notification->urls().isEmpty()) { - hintsMap[QStringLiteral("x-kde-urls")] = QUrl::toStringList(notification->urls()); - } - if (!(notification->flags() & KNotification::Persistent)) { hintsMap[QStringLiteral("transient")] = true; }