diff options
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() |