changeset e65be8537323 in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=e65be8537323
description: clean corretly opened window dict. Fixes #7983
diffstat:
src/dialogs.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 552893d68798 -r e65be8537323 src/dialogs.py
--- a/src/dialogs.py Sat Feb 28 15:11:09 2015 +0100
+++ b/src/dialogs.py Sat Feb 28 15:12:11 2015 +0100
@@ -2362,6 +2362,7 @@
this means room must be automaticaly configured and when done, invities
must be automatically invited
"""
+ self.window_account = None
if account:
if room_jid != '' and room_jid in gajim.gc_connected[account] and \
gajim.gc_connected[account][room_jid]:
@@ -2373,6 +2374,7 @@
ErrorDialog(_('You are not connected to the server'),
_('You can not join a group chat unless you are connected.'))
raise GajimGeneralException, 'You must be connected to join a groupchat'
+ self.window_account = account
self.xml = gtkgui_helpers.get_gtk_builder('join_groupchat_window.ui')
@@ -2492,9 +2494,10 @@
self._nec_agent_info_received)
gajim.ged.register_event_handler('agent-info-error-received', ged.GUI1,
self._nec_agent_info_error_received)
- if self.account and 'join_gc' in gajim.interface.instances[self.account]:
+ if self.window_account and 'join_gc' in gajim.interface.instances[
+ self.window_account]:
# remove us from open windows
- del gajim.interface.instances[self.account]['join_gc']
+ del gajim.interface.instances[self.window_account]['join_gc']
def on_join_groupchat_window_key_press_event(self, widget, event):
if event.keyval == gtk.keysyms.Escape: # ESCAPE