4969: Prevent a view being changed whilst a view change is already in progress

svn: r17710
This commit is contained in:
Nick Hall
2011-06-07 22:49:18 +00:00
parent 2044a2ef72
commit deebab7a01
2 changed files with 9 additions and 5 deletions

View File

@@ -206,12 +206,10 @@ class CategorySidebar(BaseSidebar):
"""
Called when a button causes a category change.
"""
# Make the button inactive. It will be set to active in the
# view_changed method if the change was successful.
button.set_active(False)
self.viewmanager.goto_page(cat_num, None)
# If the click is on the same view we're in,
# restore the button state to active
if button and not button.get_active():
button.set_active(True)
def __make_sidebar_button(self, use_text, index, page_title, page_stock):
"""