From 5a304cbdd639b4d7f58a242738103caf4e4c1f7a Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 22 Jul 2005 23:25:29 +0000 Subject: [PATCH] get subject from correct place --- src/groupchat_window.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index b725340d4..fe079f1e6 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -349,10 +349,7 @@ class GroupchatWindow(chat.Chat): def on_change_subject_menuitem_activate(self, widget): room_jid = self.get_active_jid() - # whole text (including JID) - label_text = self.name_labels[room_jid].get_text() - # just the text after the newline - subject = label_text[label_text.find('\n') + 1:] + subject = self.subjects[room_jid] instance = dialogs.InputDialog(_('Changing Subject'), _('Please specify the new subject:'), subject) response = instance.get_response()