correctly check window list size before removing from it
This commit is contained in:
		
							parent
							
								
									971e0502c0
								
							
						
					
					
						commit
						4f7cdd557b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -2832,7 +2832,7 @@ class PopupNotificationWindow:
 | 
				
			||||||
        gajim.interface.roster.popups_notification_height -= self.window_height
 | 
					        gajim.interface.roster.popups_notification_height -= self.window_height
 | 
				
			||||||
        self.window.destroy()
 | 
					        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
 | 
					            # we want to remove the destroyed window from the list
 | 
				
			||||||
            gajim.interface.roster.popup_notification_windows.pop(self.index)
 | 
					            gajim.interface.roster.popup_notification_windows.pop(self.index)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue