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/core/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio/core/core.py') diff --git a/poezio/core/core.py b/poezio/core/core.py index 3cc02979..d4a5c060 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -1346,9 +1346,9 @@ class Core(object): tab = self.current_tab() if isinstance(tab, tabs.RosterInfoTab): return # The tab 0 should NEVER be closed + tab.on_close() del tab.key_func # Remove self references del tab.commands # and make the object collectable - tab.on_close() nb = tab.nb if was_current: if self.previous_tab_nb != nb: -- cgit v1.2.3