send gone chatstate to all tabs if many and we close window holding them

This commit is contained in:
Nikos Kouremenos 2005-08-06 20:17:45 +00:00
parent e3242773f5
commit 680dace366
2 changed files with 2 additions and 5 deletions

View File

@ -146,7 +146,7 @@ class Chat:
windows = self.plugin.windows[self.account][kind]
if kind == 'chats':
# send 'gone' chatstate to every tabbed chat tab
windows[jid].send_chatstate('gone')
windows[jid].send_chatstate('gone', jid)
gobject.source_remove(self.possible_paused_timeout_id[jid])
gobject.source_remove(self.possible_inactive_timeout_id[jid])
if self.plugin.systray_enabled and self.nb_unread[jid] > 0:

View File

@ -500,10 +500,6 @@ class TabbedChatWindow(chat.Chat):
if jid is None:
jid = self.get_active_jid()
# this happens sometime when we close fastly all tabs
if jid is '':
return
contact = gajim.get_first_contact_instance_from_jid(self.account, jid)
@ -559,6 +555,7 @@ class TabbedChatWindow(chat.Chat):
_('You are no longer in room "%s" or "%s" has left.') % \
(room, nick)).get_response()
return
conversation_textview = self.xmls[jid].get_widget('conversation_textview')
message_textview = self.xmls[jid].get_widget('message_textview')
message_buffer = message_textview.get_buffer()