don't show subject tooltip if there is no subject. fixes #2572

This commit is contained in:
Yann Leboulanger 2006-10-16 20:28:18 +00:00
parent fa1be18664
commit 21e3f8a6a7

View file

@ -678,8 +678,9 @@ class GroupchatControl(ChatControlBase):
self.name_label.set_markup(text)
event_box = self.name_label.get_parent()
# tooltip must always hold ALL the subject
self.subject_tooltip.set_tip(event_box, self.subject)
if self.subject:
# tooltip must always hold ALL the subject
self.subject_tooltip.set_tip(event_box, self.subject)
def got_connected(self):
gajim.gc_connected[self.account][self.room_jid] = True