mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
Fix crash
This commit is contained in:
parent
9c154e9747
commit
89304a5c6b
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ NotificationsManager::postNotification(const QString &roomid,
|
||||||
auto call = notifyApp.asyncCallWithArgumentList("Notify", argumentList);
|
auto call = notifyApp.asyncCallWithArgumentList("Notify", argumentList);
|
||||||
auto watcher = new QDBusPendingCallWatcher{QDBusPendingCall{QDBusPendingReply{call}}};
|
auto watcher = new QDBusPendingCallWatcher{QDBusPendingCall{QDBusPendingReply{call}}};
|
||||||
connect(
|
connect(
|
||||||
watcher, &QDBusPendingCallWatcher::finished, this, [watcher, this, &roomid, &eventid]() {
|
watcher, &QDBusPendingCallWatcher::finished, this, [watcher, this, roomid, eventid]() {
|
||||||
if (watcher->reply().type() == QDBusMessage::ErrorMessage)
|
if (watcher->reply().type() == QDBusMessage::ErrorMessage)
|
||||||
qDebug() << "D-Bus Error:" << watcher->reply().errorMessage();
|
qDebug() << "D-Bus Error:" << watcher->reply().errorMessage();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue