From 4a214d823830561f2771739a0c72b5b017bd305b Mon Sep 17 00:00:00 2001 From: Marina Zhurakhinskaya Date: Sun, 19 Aug 2012 17:32:37 -0400 Subject: [PATCH] messageTray: be sure to remove destroyed notifications from the notification stack This allows us to correctly identify when the notification stack is empty. --- js/ui/messageTray.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 5b0403a4c..5958a873d 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1285,6 +1285,8 @@ const SummaryItem = new Lang.Class({ notification.disconnect(stackedNotification.notificationDoneDisplayingId); notification.disconnect(stackedNotification.notificationDestroyedId); this._stackedNotifications.splice(i, 1); + if (notification.actor.get_parent() == this.notificationStack) + this.notificationStack.remove_actor(notification.actor); this._contentUpdated(); break; }