prevent a tb but add a fixme because I am not sure why it happens

This commit is contained in:
Nikos Kouremenos 2005-08-18 12:59:54 +00:00
parent d437ef497a
commit f640d62ac0
1 changed files with 5 additions and 2 deletions

View File

@ -126,14 +126,17 @@ class Chat:
elif len(self.xmls) == 1: # just one tab
if self.widget_name == 'tabbed_chat_window':
c = gajim.get_first_contact_instance_from_jid(self.account, jid)
add = c.name
if c is None: # FIXME: I don't know why but c can be None!
add = ''
else:
add = c.name
elif self.widget_name == 'groupchat_window':
name = gajim.get_nick_from_jid(jid)
add = name
title = start + add
if len(gajim.connections) >= 2: # if we have 2 or more accounts
title = title + ' (' + _('account: ') + self.account + ')'
title += ' (' + _('account: ') + self.account + ')'
self.window.set_title(title)