diff options
author | mathieui <mathieui@mathieui.net> | 2014-04-02 21:33:17 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-04-02 21:33:17 +0200 |
commit | 52e6334c8c95ec873ccbcf17bf42de12eec0475d (patch) | |
tree | d83bccb0ccd319821670f4b00642ee47d995e8fe /src/tabs/conversationtab.py | |
parent | 65c247399d4b5d8d78953e72cab89b7cf6b890fa (diff) | |
download | poezio-52e6334c8c95ec873ccbcf17bf42de12eec0475d.tar.gz poezio-52e6334c8c95ec873ccbcf17bf42de12eec0475d.tar.bz2 poezio-52e6334c8c95ec873ccbcf17bf42de12eec0475d.tar.xz poezio-52e6334c8c95ec873ccbcf17bf42de12eec0475d.zip |
Fix #2340 (change tab priority when the input is not empty)
Diffstat (limited to 'src/tabs/conversationtab.py')
-rw-r--r-- | src/tabs/conversationtab.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabs/conversationtab.py b/src/tabs/conversationtab.py index 82483046..f999ddcd 100644 --- a/src/tabs/conversationtab.py +++ b/src/tabs/conversationtab.py @@ -315,7 +315,10 @@ class ConversationTab(ChatTab): resource = contact.get_highest_priority_resource() else: resource = None - self.state = 'normal' + if self.input.text: + self.state = 'nonempty' + else: + self.state = 'normal' self.text_win.remove_line_separator() self.text_win.add_line_separator(self._text_buffer) if config.get_by_tabname('send_chat_states', True, self.general_jid, True) and (not self.input.get_text() or not self.input.get_text().startswith('//')): |