Fix missing sessionBus() in core/notificationserverinfo.cpp
This commit is contained in:
parent
5431073844
commit
13230ff580
1 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,8 @@
|
|||
#include <QDBusMessage>
|
||||
#include <QDBusPendingReply>
|
||||
#include <QDBusPendingCallWatcher>
|
||||
#include <QDBusConnection>
|
||||
|
||||
#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<QStringList> reply = QDBusConnection::sessionBus().asyncCall(query);
|
||||
QDBusPendingReply<QStringList> reply = DbusHelper::sessionBus().asyncCall(query);
|
||||
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, this);
|
||||
connect(watcher, &QDBusPendingCallWatcher::finished, this, [this, reply, watcher] {
|
||||
watcher->deleteLater();
|
||||
|
|
Loading…
Reference in a new issue