Allow receiving single messages with no

subject (bug 615)
This commit is contained in:
Dimitur Kirov 2005-07-26 15:23:11 +00:00
parent 35559bed7b
commit 441b9d6290
1 changed files with 4 additions and 1 deletions

View File

@ -1081,7 +1081,10 @@ class SingleMessageWindow:
self.subject_entry.set_property('editable', False)
self.message_textview.set_editable(False)
self.reply_button.grab_focus()
# set_text(None) raises TypeError exception
if self.subject is None:
self.subject = ''
self.subject_entry.set_text(self.subject)
self.message_tv_buffer.set_text(self.message)
begin_iter = self.message_tv_buffer.get_start_iter()