diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2013-01-30 11:20:09 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2013-01-30 16:59:54 +0100 |
commit | 3dc18a5f2885f1693e9aba54cbd73fd6fe053d87 (patch) | |
tree | 19e4e6d5af3406476898595dc3a44807d32431c4 | |
parent | 6c5cf3b0bd151f040c589b73edb0ccbde05650ef (diff) |
notificationbar: Fix infinite loop in cancel()ovirt
-rw-r--r-- | src/notificationbar.vala | 4 |
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) { |