2006-12-10 Don Allingham <don@gramps-project.org>

* src/DataViews/_RelationView.py: RunDatabaseRepair integration
	* src/GrampsDb/_WriteGedcom.py: RunDatabaseRepair integration
	* src/QuestionDialog.py: RunDatabaseRepair dialog to warn users to run
	database checks



svn: r7777
This commit is contained in:
Don Allingham
2006-12-11 04:10:46 +00:00
parent 179106c39e
commit fa8085031b
4 changed files with 28 additions and 2 deletions

View File

@@ -372,6 +372,13 @@ class RelationshipView(PageView.PersonNavView):
self.change_person(None)
def change_person(self, obj):
try:
self._change_person(obj)
except AttributeError, msg:
from QuestionDialog import RunDatabaseRepair
RunDatabaseRepair(msg)
def _change_person(self, obj):
if self.redrawing:
return False
self.redrawing = True