projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c732a2f
)
Fix possible crash, mostly occurring on notification flood.
author
Hannah von Reth
<vonreth@kde.org>
Wed, 3 Feb 2016 09:37:01 +0000
(10:37 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Mon, 8 Feb 2016 21:30:37 +0000
(22:30 +0100)
src/qtui/snorenotificationbackend.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/snorenotificationbackend.cpp
b/src/qtui/snorenotificationbackend.cpp
index
69ce0e0
..
6c125d9
100644
(file)
--- a/
src/qtui/snorenotificationbackend.cpp
+++ b/
src/qtui/snorenotificationbackend.cpp
@@
-91,7
+91,9
@@
void SnoreNotificationBackend::close(uint notificationId)
}
#endif
Snore::Notification n = Snore::SnoreCore::instance().getActiveNotificationByID(m_notificationIds.take(notificationId));
}
#endif
Snore::Notification n = Snore::SnoreCore::instance().getActiveNotificationByID(m_notificationIds.take(notificationId));
- Snore::SnoreCore::instance().requestCloseNotification(n, Snore::Notification::Closed);
+ if (n.isValid()) { // Don't close the notification if it no longer exists.
+ Snore::SnoreCore::instance().requestCloseNotification(n, Snore::Notification::Closed);
+ }
}
void SnoreNotificationBackend::actionInvoked(Snore::Notification n)
}
void SnoreNotificationBackend::actionInvoked(Snore::Notification n)