* src/PageView.py: remove debug statements
* src/ViewManager.py: check for existing action group before removing svn: r5814
This commit is contained in:
parent
d8d302ae00
commit
72afadb1ff
@ -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
|
||||
|
@ -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):
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user