summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-06 14:18:45 +0100
committermathieui <mathieui@mathieui.net>2011-11-06 14:18:45 +0100
commitfbb465a092a192821fea55eae2c7a918edf9fd59 (patch)
tree85912d93210468c971608a8761ec80c7f8493e34 /src/tabs.py
parent12850ed06275fa4bbe499553e8c650b9e4a3ecea (diff)
downloadpoezio-fbb465a092a192821fea55eae2c7a918edf9fd59.tar.gz
poezio-fbb465a092a192821fea55eae2c7a918edf9fd59.tar.bz2
poezio-fbb465a092a192821fea55eae2c7a918edf9fd59.tar.xz
poezio-fbb465a092a192821fea55eae2c7a918edf9fd59.zip
Fixes #2284
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 4276e163..43dcb2b9 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -570,9 +570,9 @@ class MucTab(ChatTab):
msg = None
if self.joined:
muc.leave_groupchat(self.core.xmpp, self.name, self.own_nick, arg)
- self.joined = False
self.add_message(_("\x195}You left the chatroom\x193}"))
- self.refresh()
+ if self == self.core.current_tab():
+ self.refresh()
self.core.doupdate()
self.core.disable_private_tabs(self.name)