summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-01-24 12:41:09 +0100
committermathieui <mathieui@mathieui.net>2021-01-24 12:41:09 +0100
commit98bd4c241ebc5e988cfa865f3ca61c9eb63bc0a5 (patch)
tree6cd2c260e094d73b83edb5936117974967c4f9d0
parent5cfb0cbf43ec8e496b2fb58e948d2a234909015e (diff)
downloadpoezio-98bd4c241ebc5e988cfa865f3ca61c9eb63bc0a5.tar.gz
poezio-98bd4c241ebc5e988cfa865f3ca61c9eb63bc0a5.tar.bz2
poezio-98bd4c241ebc5e988cfa865f3ca61c9eb63bc0a5.tar.xz
poezio-98bd4c241ebc5e988cfa865f3ca61c9eb63bc0a5.zip
muctab: fix closing a tab not in bookmarks
………
-rw-r--r--poezio/tabs/muctab.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 645fb83e..69256cfe 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -1525,10 +1525,9 @@ class MucTab(ChatTab):
"""
self.leave_room(msg)
if config.get('synchronise_open_rooms'):
- if self.jid not in self.core.bookmarks:
- return
- self.core.bookmarks[self.jid].autojoin = False
- self.core.bookmarks.save(self.core.xmpp)
+ if self.jid in self.core.bookmarks:
+ self.core.bookmarks[self.jid].autojoin = False
+ self.core.bookmarks.save(self.core.xmpp)
self.core.close_tab(self)
def on_close(self) -> None: