When there is an error connecting to an account, close only this account's pass dialog. Fixes #5586

This commit is contained in:
Yann Leboulanger 2010-02-03 22:13:52 +01:00
parent 6406a9d710
commit 5b527408bb

View file

@ -220,8 +220,7 @@ class Interface:
for request in self.gpg_passphrase.values(): for request in self.gpg_passphrase.values():
if request: if request:
request.interrupt() request.interrupt()
# .keys() is needed because dict changes during loop if account in self.pass_dialog:
for account in self.pass_dialog.keys():
self.pass_dialog[account].window.destroy() self.pass_dialog[account].window.destroy()
if show == 'offline': if show == 'offline':
# sensitivity for this menuitem # sensitivity for this menuitem