subj entry to grab focus in single message only if we have jid to sent already

This commit is contained in:
Nikos Kouremenos 2005-11-23 22:52:50 +00:00
parent fbec47dd3f
commit 8c3a624a77
1 changed files with 2 additions and 1 deletions

View File

@ -971,7 +971,8 @@ class SingleMessageWindow:
if self.message: # we come from a reply?
self.message_textview.grab_focus()
else: # we write a new message
self.subject_entry.grab_focus()
if to: # do we already have jid?
self.subject_entry.grab_focus()
elif self.action == 'receive':
self.from_whom = from_whom
fjid = from_whom # Full jid of sender (with resource)