summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-01-30 11:20:09 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2013-01-30 16:59:54 +0100
commit3dc18a5f2885f1693e9aba54cbd73fd6fe053d87 (patch)
tree19e4e6d5af3406476898595dc3a44807d32431c4
parent6c5cf3b0bd151f040c589b73edb0ccbde05650ef (diff)
notificationbar: Fix infinite loop in cancel()ovirt
-rw-r--r--src/notificationbar.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/notificationbar.vala b/src/notificationbar.vala
index b79b30a..d9d8e5d 100644
--- a/src/notificationbar.vala
+++ b/src/notificationbar.vala
@@ -146,8 +146,10 @@ private class Boxes.Notificationbar: GLib.Object {
public void cancel () {
// We destroy all active notifications, which will cause them to be dismissed
- while (active_notifications != null)
+ while (active_notifications != null) {
active_notifications.data.destroy ();
+ active_notifications.remove (active_notifications.data);
+ }
}
private void add_notification (Widget w) {