correctly check window list size before removing from it

This commit is contained in:
Aleksey Rybalkin 2012-04-24 14:18:54 +04:00
parent 971e0502c0
commit 4f7cdd557b
1 changed files with 1 additions and 1 deletions

View File

@ -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)