summaryrefslogtreecommitdiff
path: root/poezio/core/core.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/core/core.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/core/core.py')
-rw-r--r--poezio/core/core.py2
1 files changed, 1 insertions, 1 deletions
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: