From 441b9d6290180adefef918689085411ad1c3490d Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 26 Jul 2005 15:23:11 +0000 Subject: [PATCH] Allow receiving single messages with no subject (bug 615) --- src/dialogs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index 6354e4f0a..261fef207 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -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()