diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 450f2baad..bed4ae7bb 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -160,6 +160,8 @@ class GroupchatWindow(chat.Chat): name_label = self.name_labels[new_jid] name_label.set_markup('%s\n%s' % (new_jid, subject)) event_box = name_label.get_parent() + if subject == '': + subject = _('This room has no subject') self.subject_tooltip[new_jid].set_tip(event_box, subject) chat.Chat.on_chat_notebook_switch_page(self, notebook, page, page_num) @@ -326,6 +328,8 @@ class GroupchatWindow(chat.Chat): name_label = self.name_labels[room_jid] name_label.set_markup('%s\n%s' % (room_jid, subject)) event_box = name_label.get_parent() + if subject == '': + subject = _('This room has no subject') self.subject_tooltip[room_jid].set_tip(event_box, subject) def on_change_subject_menuitem_activate(self, widget):