From 4f7cdd557b8b22f004447656e1fc17ae0d8be49d Mon Sep 17 00:00:00 2001 From: Aleksey Rybalkin Date: Tue, 24 Apr 2012 14:18:54 +0400 Subject: [PATCH] correctly check window list size before removing from it --- src/dialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index f9dfb325e..df0b1cab4 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -2832,7 +2832,7 @@ class PopupNotificationWindow: gajim.interface.roster.popups_notification_height -= self.window_height self.window.destroy() - if len(gajim.interface.roster.popup_notification_windows) > 0: + if len(gajim.interface.roster.popup_notification_windows) > self.index: # we want to remove the destroyed window from the list gajim.interface.roster.popup_notification_windows.pop(self.index)