* 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 24a2f68930
commit 59e55950a6
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,6 +451,7 @@ 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):
if self.dbstate.active:
EditPerson.EditPerson(self.dbstate, self.uistate, self.dbstate.active) EditPerson.EditPerson(self.dbstate, self.uistate, self.dbstate.active)
def remove(self,obj): def remove(self,obj):