* src/Date.py (is_equal): Add method -- needed to compare dates
for being identical, since __cmp__ only compares the sorting value and ignores the modifiers. * src/RelLib.py (Event.are_equal, LdsOrd.are_equal): Use is_equal() method to compare dates. * src/AddrEdit.py: Use is_equal() method to compare dates. * src/EventEdit.py: Use is_equal() method to compare dates. * src/gramps.glade (date_edit): Re-order widgets, add hot keys; (event_edit, addr_edit): Remove button relief as in editPerson. svn: r3558
This commit is contained in:
@@ -350,7 +350,7 @@ class EventEditor:
|
||||
self.event.set_source_reference_list(self.srcreflist)
|
||||
self.event.set_witness_list(self.witnesslist)
|
||||
|
||||
if dobj != date:
|
||||
if not dobj.are_equal(date):
|
||||
self.event.set_date_object(date)
|
||||
self.parent.lists_changed = 1
|
||||
|
||||
|
Reference in New Issue
Block a user