From f0f57cf009e12997dddd4a7213666a73a5bb0b51 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 13 Jun 2010 22:17:57 -0600 Subject: [PATCH] Fix a bug that could cause the show pabe buttons to not show hidden panes --- src/calibre/gui2/widgets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/widgets.py b/src/calibre/gui2/widgets.py index 52bd8eda9a..c32b79fb7c 100644 --- a/src/calibre/gui2/widgets.py +++ b/src/calibre/gui2/widgets.py @@ -1110,6 +1110,8 @@ class Splitter(QSplitter): def show_side_pane(self): if self.count() < 2 or not self.is_side_index_hidden: return + if self.desired_side_size == 0: + self.desired_side_size = self.initial_side_size self.apply_state((True, self.desired_side_size)) def hide_side_pane(self):