* src/PageView.py: remove debug statements

* src/ViewManager.py: check for existing action group before removing


svn: r5814
This commit is contained in:
Don Allingham
2006-01-21 05:05:25 +00:00
parent d8d302ae00
commit 72afadb1ff
3 changed files with 4 additions and 4 deletions

View File

@ -482,7 +482,8 @@ class ViewManager:
self.active_page.set_inactive()
groups = self.active_page.get_actions()
for grp in groups:
self.uimanager.remove_action_group(grp)
if grp in self.uimanager.get_action_groups():
self.uimanager.remove_action_group(grp)
if len(self.pages) > 0:
self.active_page = self.pages[num]