summaryrefslogtreecommitdiff
path: root/src/tabs/muctab.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-02 21:33:17 +0200
committermathieui <mathieui@mathieui.net>2014-04-02 21:33:17 +0200
commit52e6334c8c95ec873ccbcf17bf42de12eec0475d (patch)
treed83bccb0ccd319821670f4b00642ee47d995e8fe /src/tabs/muctab.py
parent65c247399d4b5d8d78953e72cab89b7cf6b890fa (diff)
downloadpoezio-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.py5
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()