changeset 479ea20ae99e in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=479ea20ae99e description: prevent having more than one password required dialog per room. Fixes #6790
diffstat:
src/gui_interface.py | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 1ed6a6904fc9 -r 479ea20ae99e src/gui_interface.py --- a/src/gui_interface.py Wed May 18 22:08:37 2011 +0200 +++ b/src/gui_interface.py Wed May 18 22:48:28 2011 +0200 @@ -261,11 +261,16 @@ ctrl = self.msg_win_mgr.get_gc_control(room_jid, account) win.remove_tab(ctrl, 3)
- dlg = dialogs.InputDialog(_('Password Required'), + gc_control = self.msg_win_mgr.get_gc_control(room_jid, account) + if gc_control: + if gc_control.error_dialog: + gc_control.error_dialog.destroy() + + gc_control.error_dialog = dialogs.InputDialog(_('Password Required'), _('A Password is required to join the room %s. Please type it.') % \ room_jid, is_modal=False, ok_handler=on_ok, cancel_handler=on_cancel) - dlg.input_entry.set_visibility(False) + gc_control.error_dialog.input_entry.set_visibility(False)
def handle_event_gc_presence(self, obj): gc_control = obj.gc_control