From 5b527408bbf01923106dfc5f4fd48865948aaa80 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 3 Feb 2010 22:13:52 +0100 Subject: [PATCH] When there is an error connecting to an account, close only this account's pass dialog. Fixes #5586 --- src/gui_interface.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui_interface.py b/src/gui_interface.py index 4225b1fdc..e2eeaf1b2 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -220,8 +220,7 @@ class Interface: for request in self.gpg_passphrase.values(): if request: request.interrupt() - # .keys() is needed because dict changes during loop - for account in self.pass_dialog.keys(): + if account in self.pass_dialog: self.pass_dialog[account].window.destroy() if show == 'offline': # sensitivity for this menuitem