From 8634b5ea66cd8fb305d41a2680c66a7d4fcde73c Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 22 Jul 2016 19:56:07 +0200 Subject: Fix a bug with the _close_tab shortcut MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- poezio/tabs/privatetab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'poezio/tabs/privatetab.py') 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): -- cgit v1.2.3