* src/PageView.py: remove debug statements
* src/ViewManager.py: check for existing action group before removing svn: r5814
This commit is contained in:
parent
4943f1f09a
commit
5af19711d8
@ -1,4 +1,6 @@
|
|||||||
2006-01-20 Don Allingham <don@gramps-project.org>
|
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/GrampsDb/_GrampsBSDDB.py: remove function call in find_surname
|
||||||
* src/GenericFilter.py: implement short-circuit if only rule is
|
* src/GenericFilter.py: implement short-circuit if only rule is
|
||||||
Everyone
|
Everyone
|
||||||
|
@ -54,7 +54,6 @@ class PageView:
|
|||||||
def set_active(self):
|
def set_active(self):
|
||||||
self.active = True
|
self.active = True
|
||||||
if self.dirty:
|
if self.dirty:
|
||||||
print self,"set active dirty"
|
|
||||||
self.build_tree()
|
self.build_tree()
|
||||||
|
|
||||||
def set_inactive(self):
|
def set_inactive(self):
|
||||||
@ -276,7 +275,6 @@ class PersonNavView(PageView):
|
|||||||
self.uistate.modify_statusbar()
|
self.uistate.modify_statusbar()
|
||||||
self.dbstate.change_active_handle(handle)
|
self.dbstate.change_active_handle(handle)
|
||||||
hobj.mhistory.append(hobj.history[hobj.index])
|
hobj.mhistory.append(hobj.history[hobj.index])
|
||||||
# self.redraw_histmenu()
|
|
||||||
self.back_action.set_sensitive(not hobj.at_front())
|
self.back_action.set_sensitive(not hobj.at_front())
|
||||||
self.fwd_action.set_sensitive(True)
|
self.fwd_action.set_sensitive(True)
|
||||||
except:
|
except:
|
||||||
@ -445,7 +443,6 @@ class ListView(PageView):
|
|||||||
if self.active:
|
if self.active:
|
||||||
self.build_tree()
|
self.build_tree()
|
||||||
else:
|
else:
|
||||||
print self,"change_db dirty"
|
|
||||||
self.dirty = True
|
self.dirty = True
|
||||||
|
|
||||||
def row_add(self,handle_list):
|
def row_add(self,handle_list):
|
||||||
|
@ -482,7 +482,8 @@ class ViewManager:
|
|||||||
self.active_page.set_inactive()
|
self.active_page.set_inactive()
|
||||||
groups = self.active_page.get_actions()
|
groups = self.active_page.get_actions()
|
||||||
for grp in groups:
|
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:
|
if len(self.pages) > 0:
|
||||||
self.active_page = self.pages[num]
|
self.active_page = self.pages[num]
|
||||||
|
Loading…
Reference in New Issue
Block a user