From 911d95815f34dd4ea68666cfbf2153af509a9ca9 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 16 Feb 2009 02:40:50 +0000 Subject: [PATCH] Fix hiding bottom pane when no tabs are enabled upon restart --- deluge/ui/gtkui/torrentdetails.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deluge/ui/gtkui/torrentdetails.py b/deluge/ui/gtkui/torrentdetails.py index ee5e2ceb1..3404a1f51 100644 --- a/deluge/ui/gtkui/torrentdetails.py +++ b/deluge/ui/gtkui/torrentdetails.py @@ -204,6 +204,12 @@ class TorrentDetails(component.Component): self.regenerate_positions() self.generate_menu() + show = False + for name, tab in self.tabs.iteritems(): + show = show or tab.is_visible + + self.visible(show) + def show_tab(self, tab_name): log.debug("%s\n%s\n%s", self.tabs[tab_name].get_child_widget(), self.tabs[tab_name].get_tab_label(), @@ -234,6 +240,7 @@ class TorrentDetails(component.Component): self.tabs[tab_name].is_visible = True self.regenerate_positions() self.generate_menu() + self.visible(True) def generate_menu(self): """Generates the checklist menu for all the tabs and attaches it"""