changeset e8d168bf800e in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=e8d168bf800e 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 13c6a65a5447 -r e8d168bf800e src/gui_interface.py --- a/src/gui_interface.py Fri Feb 18 17:04:27 2011 +0100 +++ b/src/gui_interface.py Wed May 18 22:48:28 2011 +0200 @@ -1129,11 +1129,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_invitation(self, account, array): #('GC_INVITATION', (room_jid, jid_from, reason, password, is_continued))