diff --git a/core/notificationserverinfo.cpp b/core/notificationserverinfo.cpp index d95ac3350..862ea82c1 100644 --- a/core/notificationserverinfo.cpp +++ b/core/notificationserverinfo.cpp @@ -23,7 +23,8 @@ #include #include #include -#include + +#include "dbushelper.h" #include "core_debug.h" @@ -37,7 +38,7 @@ void NotificationServerInfo::init() { QDBusMessage query = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.Notifications"), QStringLiteral("/org/freedesktop/Notifications"), QStringLiteral("org.freedesktop.Notifications"), QStringLiteral("GetCapabilities")); - QDBusPendingReply reply = QDBusConnection::sessionBus().asyncCall(query); + QDBusPendingReply reply = DbusHelper::sessionBus().asyncCall(query); QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, this); connect(watcher, &QDBusPendingCallWatcher::finished, this, [this, reply, watcher] { watcher->deleteLater();