From 5df9361bc4ea602d30a163865c3ac0ef349da713 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 5 Jul 2005 21:57:19 +0000 Subject: [PATCH] better UI logic --- src/dialogs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dialogs.py b/src/dialogs.py index 041e2f793..2be71864e 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -904,12 +904,14 @@ class SingleMessageWindow: gajim.connections[self.account].send_message(to_whom_jid, message, keyID = None, type = 'normal', subject=subject) + self.subject_entry.set_text('') # we sent ok, clear the subject self.message_tv_buffer.set_text('') # we sent ok, clear the textview def on_reply_button_clicked(self, widget): # we create a new blank window to send and we preset RE: and to jid self.subject = _('RE: %s') % self.subject self.message = _('\n-< Original Message >-\n%s') % self.message + self.window.destroy() SingleMessageWindow(self.plugin, self.account, self.contact, action = 'send', from_whom = self.from_whom, subject = self.subject, message = self.message)