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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user