This commit is contained in:
Nikos Kouremenos 2005-11-02 11:29:51 +00:00
parent b35f340018
commit c4eb2d62d7
1 changed files with 4 additions and 1 deletions

View File

@ -157,7 +157,10 @@ class Chat:
elif len(self.xmls) == 1: # just one tab elif len(self.xmls) == 1: # just one tab
if self.widget_name == 'tabbed_chat_window': if self.widget_name == 'tabbed_chat_window':
c = gajim.get_first_contact_instance_from_jid(self.account, jid) c = gajim.get_first_contact_instance_from_jid(self.account, jid)
add = c.name if c is None:
add = ''
else:
add = c.name
elif self.widget_name == 'groupchat_window': elif self.widget_name == 'groupchat_window':
name = gajim.get_nick_from_jid(jid) name = gajim.get_nick_from_jid(jid)
add = name add = name