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/muctab.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/muctab.py')
-rw-r--r-- | src/tabs/muctab.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py index b80903d4..5a271736 100644 --- a/src/tabs/muctab.py +++ b/src/tabs/muctab.py @@ -768,7 +768,10 @@ class MucTab(ChatTab): def on_lose_focus(self): if self.joined: - self.state = 'normal' + if self.input.text: + self.state = 'nonempty' + else: + self.state = 'normal' else: self.state = 'disconnected' self.text_win.remove_line_separator() |