From 13230ff580a6fae27b4a6a0419f459ba1b31e729 Mon Sep 17 00:00:00 2001 From: Weixuan Xiao Date: Sun, 9 Jun 2019 18:45:03 +0000 Subject: [PATCH] Fix missing sessionBus() in core/notificationserverinfo.cpp --- core/notificationserverinfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();