* src/RelLib/_Place.py: Check for empty location

* src/Editors/_EditEvent.py: use default data change check


svn: r7111
This commit is contained in:
Don Allingham
2006-08-02 04:29:46 +00:00
parent e59d065ada
commit 92b1f152e1
3 changed files with 6 additions and 10 deletions

View File

@@ -221,15 +221,6 @@ class EditEvent(EditPrimary):
self.callback(self.obj)
self.close()
def data_has_changed(self):
if self.db.readonly:
return False
elif self.obj.handle:
orig = self.db.get_event_from_handle(self.obj.handle)
return cmp(orig.serialize(),self.obj.serialize()) != 0
else:
return True
class EditPersonEvent(EditEvent):
def __init__(self, event, dbstate, uistate, track=[], callback=None):