summary refs log tree commit diff
path: root/src/notifications
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-02-23 12:42:57 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-02-23 12:42:57 +0100
commit865344c7aa6e58c471956f44a60099c902495758 (patch)
tree5378e9f3c2dc01546f1d7d9cd1d6760fb68c84e2 /src/notifications
parentFix qml formatting (diff)
downloadnheko-865344c7aa6e58c471956f44a60099c902495758.tar.xz
Fix unused capture
Diffstat (limited to 'src/notifications')
-rw-r--r--src/notifications/ManagerLinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notifications/ManagerLinux.cpp b/src/notifications/ManagerLinux.cpp
index fb424b2a..c7fd4023 100644
--- a/src/notifications/ManagerLinux.cpp
+++ b/src/notifications/ManagerLinux.cpp
@@ -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();
                 };