diff options
author | mathieui <mathieui@mathieui.net> | 2016-07-22 19:56:07 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-07-22 19:56:07 +0200 |
commit | 8634b5ea66cd8fb305d41a2680c66a7d4fcde73c (patch) | |
tree | b8b70bddee730c87e43c31cd826fa2bd1d2d0db3 /poezio/tabs/bookmarkstab.py | |
parent | 89194356ee3b61c6c630d15b8aeb94c91cbacba4 (diff) | |
download | poezio-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/bookmarkstab.py')
-rw-r--r-- | poezio/tabs/bookmarkstab.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/tabs/bookmarkstab.py b/poezio/tabs/bookmarkstab.py index 053e45dd..5416712b 100644 --- a/poezio/tabs/bookmarkstab.py +++ b/poezio/tabs/bookmarkstab.py @@ -58,7 +58,7 @@ class BookmarksTab(Tab): self.removed_bookmarks.append(current) def on_cancel(self): - self.core.close_tab() + self.core.close_tab(self) return True def on_save(self): @@ -85,7 +85,7 @@ class BookmarksTab(Tab): self.core.information('Remote bookmarks not saved.', 'Error') log.debug('alerte %s', str(stanza_storage(self.bookmarks.bookmarks))) self.bookmarks.save(self.core.xmpp, callback=send_cb) - self.core.close_tab() + self.core.close_tab(self) return True def on_input(self, key, raw=False): |