fix traceback

This commit is contained in:
Denis Fomin 2013-02-13 10:16:52 +04:00
parent 6aca316b7e
commit b90382a352
1 changed files with 1 additions and 1 deletions

View File

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