OBS-URL: https://build.opensuse.org/request/show/578840 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kdeconnect-kde?expand=0&rev=8
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 6495e8dc538610fb679df0f1522243103a3a1789 Mon Sep 17 00:00:00 2001
|
|
From: Aleix Pol <aleixpol@kde.org>
|
|
Date: Tue, 30 Jan 2018 17:43:58 +0100
|
|
Subject: On my system the notification is null
|
|
|
|
It may be a bug, but we better not crash anyway
|
|
---
|
|
plugins/notifications/notificationsdbusinterface.cpp | 7 +++++--
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/plugins/notifications/notificationsdbusinterface.cpp b/plugins/notifications/notificationsdbusinterface.cpp
|
|
index 47e54a3..c0505c6 100644
|
|
--- a/plugins/notifications/notificationsdbusinterface.cpp
|
|
+++ b/plugins/notifications/notificationsdbusinterface.cpp
|
|
@@ -91,8 +91,11 @@ void NotificationsDbusInterface::processPackage(const NetworkPackage& np)
|
|
});
|
|
}
|
|
} else {
|
|
- QString pubId = m_internalIdToPublicId[id];
|
|
- Notification* noti = m_notifications[pubId];
|
|
+ QString pubId = m_internalIdToPublicId.value(id);
|
|
+ Notification* noti = m_notifications.value(pubId);
|
|
+ if (!noti)
|
|
+ return;
|
|
+
|
|
noti->update(np);
|
|
|
|
if (noti->isReady()) {
|
|
--
|
|
cgit v0.11.2
|
|
|