* 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

@ -1,4 +1,6 @@
2006-01-20 Don Allingham <don@gramps-project.org>
* src/PageView.py: remove debug statements
* src/ViewManager.py: check for existing action group before removing
* src/GrampsDb/_GrampsBSDDB.py: remove function call in find_surname
* src/GenericFilter.py: implement short-circuit if only rule is
Everyone

View File

@ -54,7 +54,6 @@ class PageView:
def set_active(self):
self.active = True
if self.dirty:
print self,"set active dirty"
self.build_tree()
def set_inactive(self):
@ -276,7 +275,6 @@ class PersonNavView(PageView):
self.uistate.modify_statusbar()
self.dbstate.change_active_handle(handle)
hobj.mhistory.append(hobj.history[hobj.index])
# self.redraw_histmenu()
self.back_action.set_sensitive(not hobj.at_front())
self.fwd_action.set_sensitive(True)
except:
@ -445,7 +443,6 @@ class ListView(PageView):
if self.active:
self.build_tree()
else:
print self,"change_db dirty"
self.dirty = True
def row_add(self,handle_list):

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]