Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions panels/notification/server/dbusadaptor.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -32,10 +32,7 @@ uint DbusAdaptor::Notify(const QString &appName, uint replacesId, const QString
{
uint id = manager()->Notify(appName, replacesId, appIcon, summary, body, actions, hints, expireTimeout);
if (id == 0) {
QDBusError error(QDBusError::InternalError, "Notify failed.");
QDBusMessage reply = QDBusMessage::createError(error);

QDBusConnection::sessionBus().send(reply);
qWarning(notifyLog) << "Notify failed for app:" << appName;
}

return id;
Expand Down Expand Up @@ -76,10 +73,7 @@ uint DDENotificationDbusAdaptor::Notify(const QString &appName, uint replacesId,
{
uint id = manager()->Notify(appName, replacesId, appIcon, summary, body, actions, hints, expireTimeout);
if (id == 0) {
QDBusError error(QDBusError::InternalError, "Notify failed.");
QDBusMessage reply = QDBusMessage::createError(error);

QDBusConnection::sessionBus().send(reply);
qWarning(notifyLog) << "Notify failed for app:" << appName;
}

return id;
Expand Down