Fix unused capture

This commit is contained in:
Nicolas Werner 2021-02-23 12:42:57 +01:00
parent 7560972cac
commit 865344c7aa
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -109,7 +109,7 @@ NotificationsManager::closeNotification(uint id)
"org.freedesktop.Notifications");
auto call = closeCall.asyncCall("CloseNotification", (uint)id); // replace_id
auto watcher = new QDBusPendingCallWatcher{call, this};
connect(watcher, &QDBusPendingCallWatcher::finished, this, [watcher, this]() {
connect(watcher, &QDBusPendingCallWatcher::finished, this, [watcher]() {
if (watcher->reply().type() == QDBusMessage::ErrorMessage) {
qDebug() << "D-Bus Error:" << watcher->reply().errorMessage();
};