From f1427b7dd564d603d9e07e624941c5d89fbfa368 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 16 Aug 2008 05:28:12 +0000 Subject: [PATCH] Fix hiding the bottom pane when disabling all the tabs --- deluge/ui/gtkui/torrentdetails.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deluge/ui/gtkui/torrentdetails.py b/deluge/ui/gtkui/torrentdetails.py index bd37f3bbc..dda217fd4 100644 --- a/deluge/ui/gtkui/torrentdetails.py +++ b/deluge/ui/gtkui/torrentdetails.py @@ -186,6 +186,7 @@ class TorrentDetails(component.Component): self.tabs[tab].is_visible = False log.debug("n_pages: %s", self.notebook.get_n_pages()) self.generate_menu() + self.visible(False) def show_all_tabs(self): """Shows all tabs""" @@ -197,6 +198,9 @@ class TorrentDetails(component.Component): self.tabs[tab].position) self.tabs[tab].is_visible = True self.generate_menu() + if not self.notebook.get_property("visible"): + # If the notebook isn't visible, show it + self.visible(True) def hide_tab(self, tab_name): """Hides tab by name"""