On my system the notification is null
It may be a bug, but we better not crash anyway
This commit is contained in:
parent
83158aac7a
commit
6495e8dc53
1 changed files with 5 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue