Fixed delete place problem when no references are used.

svn: r409
This commit is contained in:
Don Allingham
2001-09-17 02:42:57 +00:00
parent 1bd4a30e15
commit 91ae4cfa1e
3 changed files with 165 additions and 126 deletions

View File

@@ -998,7 +998,12 @@ def on_delete_place_clicked(obj):
msg = t % (fname,e[0].getId(),e[1].getName())
textbox.insert_defaults(msg)
else:
map = database.getPlaceMap()
del map[place.getId()]
utils.modified()
update_display(0)
#-------------------------------------------------------------------------
#
#