Skip to content
Snippets Groups Projects
Commit 4108ef31 authored by nkour's avatar nkour
Browse files

fix a traceback [do not pass empty jid]

parent 7e570e66
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ class Chat:
start = '[' + str(self.nb_unread[jid]) + '] '
elif self.nb_unread[jid] == 1:
start = '* '
child = self.childs[jid]
if self.widget_name == 'tabbed_chat_window':
nickname = self.notebook.get_tab_label(child).get_children()[1]
......@@ -138,6 +138,7 @@ class Chat:
nickname.set_text(start + self.names[jid])
def on_window_destroy(self, widget, kind): #kind is 'chats' or 'gc'
'''clean self.plugin.windows[self.account][kind]'''
for jid in self.xmls:
......@@ -272,7 +273,8 @@ class Chat:
if self.widget_name == 'tabbed_chat_window':
# send chatstate inactive to the one we're leaving
# and active to the one we visit
self.send_chatstate('inactive', old_jid)
if old_jid != '':
self.send_chatstate('inactive', old_jid)
self.send_chatstate('active', new_jid)
conversation_textview = self.xmls[new_jid].get_widget(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment