From 06bdf5636145bf0532ac745b6f77d8a5222c3a59 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 11 Apr 2006 22:24:26 +0000 Subject: [PATCH] * src/ViewManager.py (ViewManager.change_page): Always toggle the sidebar buttons, even if no data is loaded. svn: r6312 --- src/ViewManager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ViewManager.py b/src/ViewManager.py index 756223595..1e647be4b 100644 --- a/src/ViewManager.py +++ b/src/ViewManager.py @@ -557,11 +557,11 @@ class ViewManager: if num == -1: num = self.notebook.get_current_page() - if self.state.open: + for ix in range(len(self.buttons)): + if ix != num and self.buttons[ix].get_active(): + self.buttons[ix].set_active(False) - for ix in range(len(self.buttons)): - if ix != num and self.buttons[ix].get_active(): - self.buttons[ix].set_active(False) + if self.state.open: for mergeid in self.merge_ids: self.uimanager.remove_ui(mergeid)