diff --git a/src/gui_interface.py b/src/gui_interface.py index 7ffbb2d3e..7e2daf836 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -210,7 +210,7 @@ class Interface: #('STATUS', account, show) account = obj.conn.name if obj.show in ('offline', 'error'): - for name in self.instances[account]['online_dialog'].keys(): + for name in list(self.instances[account]['online_dialog'].keys()): # .keys() is needed to not have a dictionary length changed # during iteration error self.instances[account]['online_dialog'][name].destroy()