* src/PersonView.py (edit): Work with missing active person

svn: r5200
This commit is contained in:
Martin Hawlisch 2005-09-16 18:37:13 +00:00
parent 6cd2a0f8a0
commit a875550db1
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@
2005-09-16 Martin Hawlisch <Martin.Hawlisch@gmx.de> 2005-09-16 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* Makefile.am: Disable install, show warning instead. * Makefile.am: Disable install, show warning instead.
* src/PageView.py (button_press): Catch problem with no loaded database * src/PageView.py (button_press): Catch problem with no loaded database
* src/PersonView.py (button_press): Catch problem with no loaded database * src/PersonView.py (button_press): Catch problem with no loaded
database; (edit): Work with missing active person
* src/GrampsDbBase.py (_get_from_handle): Catch problem with no loaded database * src/GrampsDbBase.py (_get_from_handle): Catch problem with no loaded database
* src/MapView.py: Updates * src/MapView.py: Updates
* src/EditPerson.py: Change complete flag into marker combo * src/EditPerson.py: Change complete flag into marker combo

View File

@ -451,7 +451,8 @@ class PersonView(PageView.PersonNavView):
EditPerson.EditPerson(self.dbstate, self.uistate, person) EditPerson.EditPerson(self.dbstate, self.uistate, person)
def edit(self,obj): def edit(self,obj):
EditPerson.EditPerson(self.dbstate, self.uistate, self.dbstate.active) if self.dbstate.active:
EditPerson.EditPerson(self.dbstate, self.uistate, self.dbstate.active)
def remove(self,obj): def remove(self,obj):
mlist = self.get_selected_objects() mlist = self.get_selected_objects()