03651: Deleting more than one person causes crash

Actually these are fixes trying to fix this bug


svn: r14575
This commit is contained in:
Benny Malengier
2010-03-02 11:13:30 +00:00
parent ef4ef445d1
commit d594dcf247
3 changed files with 18 additions and 2 deletions

@ -290,6 +290,8 @@ class BasePersonView(ListView):
active_name = _("Delete Person (%s)") % name_displayer.display(person)
# delete the person from the database
# Above will emit person-delete, which removes the person via
# callback to the model, so row delete is signaled
self.dbstate.db.delete_person_from_database(person, trans)
# commit the transaction
@ -298,7 +300,7 @@ class BasePersonView(ListView):
# select the previously active person, turn off the busy cursor
history = self.uistate.get_history(self.navigation_type(),
self.navigation_group())
history.back()
history.remove(person.handle)
self.uistate.set_busy_cursor(False)
def dummy_report(self, obj):