summaryrefslogtreecommitdiff
path: root/poezio/tabs/privatetab.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-07-22 19:56:07 +0200
committermathieui <mathieui@mathieui.net>2016-07-22 19:56:07 +0200
commit8634b5ea66cd8fb305d41a2680c66a7d4fcde73c (patch)
treeb8b70bddee730c87e43c31cd826fa2bd1d2d0db3 /poezio/tabs/privatetab.py
parent89194356ee3b61c6c630d15b8aeb94c91cbacba4 (diff)
downloadpoezio-8634b5ea66cd8fb305d41a2680c66a7d4fcde73c.tar.gz
poezio-8634b5ea66cd8fb305d41a2680c66a7d4fcde73c.tar.bz2
poezio-8634b5ea66cd8fb305d41a2680c66a7d4fcde73c.tar.xz
poezio-8634b5ea66cd8fb305d41a2680c66a7d4fcde73c.zip
Fix a bug with the _close_tab shortcut
on_close wasn’t used correctly everywhere. Also make the "close" commands for each tab specific to themselves, rather than taking the current tab for closure.
Diffstat (limited to 'poezio/tabs/privatetab.py')
-rw-r--r--poezio/tabs/privatetab.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py
index c8c80f19..7a132167 100644
--- a/poezio/tabs/privatetab.py
+++ b/poezio/tabs/privatetab.py
@@ -96,6 +96,7 @@ class PrivateTab(OneToOneTab):
self.core.information('Unable to write in the log file', 'Error')
def on_close(self):
+ super().on_close()
self.parent_muc.privates.remove(self)
def completion(self):
@@ -188,7 +189,7 @@ class PrivateTab(OneToOneTab):
"""
/unquery
"""
- self.core.close_tab()
+ self.core.close_tab(self)
@command_args_parser.quoted(0, 1)
def command_version(self, args):