messageTray: be sure to remove destroyed notifications from the notification stack

This allows us to correctly identify when the notification stack is empty.
This commit is contained in:
Marina Zhurakhinskaya 2012-08-19 17:32:37 -04:00 committed by Jasper St. Pierre
parent 44b4741e35
commit 4a214d8238

View File

@ -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;
}