From ff99d4d020c53622be340936cfc1009aa9138e4d Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 2 Oct 2006 02:32:47 +0000 Subject: [PATCH] update svn: r7340 --- gramps2/src/ViewManager.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/gramps2/src/ViewManager.py b/gramps2/src/ViewManager.py index 9c04a74bb..d0b8a73b2 100644 --- a/gramps2/src/ViewManager.py +++ b/gramps2/src/ViewManager.py @@ -674,13 +674,14 @@ class ViewManager: self.notebook.set_current_page(current) def vb_clicked(self,button,index): - self.vb_handlers_block() - self.notebook.set_current_page(index) - # If the click is on the same view we're in, - # restore the button state to active - if not button.get_active(): - button.set_active(True) - self.vb_handlers_unblock() + if Config.get(Config.VIEW): + self.vb_handlers_block() + self.notebook.set_current_page(index) + # If the click is on the same view we're in, + # restore the button state to active + if not button.get_active(): + button.set_active(True) + self.vb_handlers_unblock() def vb_handlers_block(self): for ix in range(len(self.buttons)):