summary refs log tree commit diff
path: root/src/notifications/ManagerLinux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/notifications/ManagerLinux.cpp')
-rw-r--r--src/notifications/ManagerLinux.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/notifications/ManagerLinux.cpp b/src/notifications/ManagerLinux.cpp

index fb424b2a..a222bd36 100644 --- a/src/notifications/ManagerLinux.cpp +++ b/src/notifications/ManagerLinux.cpp
@@ -44,12 +44,11 @@ NotificationsManager::NotificationsManager(QObject *parent) SLOT(notificationReplied(uint, QString))); } -/** - * This function is based on code from - * https://github.com/rohieb/StratumsphereTrayIcon - * Copyright (C) 2012 Roland Hieber <rohieb@rohieb.name> - * Licensed under the GNU General Public License, version 3 - */ +// SPDX-FileCopyrightText: 2012 Roland Hieber <rohieb@rohieb.name> +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + void NotificationsManager::postNotification(const mtx::responses::Notification &notification, const QImage &icon) @@ -109,7 +108,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(); }; @@ -174,7 +173,7 @@ NotificationsManager::notificationClosed(uint id, uint reason) * http://www.clementine-player.org) and licensed under the GNU General Public * License, version 3 or later. * - * Copyright 2010, David Sansome <me@davidsansome.com> + * SPDX-FileCopyrightText: 2010 David Sansome <me@davidsansome.com> */ QDBusArgument & operator<<(QDBusArgument &arg, const QImage &image)