Stop media editor prompting to save changes on cancellation when none made. Bug #2364
svn: r11029
This commit is contained in:
@@ -82,7 +82,7 @@ class MediaObject(SourceBase, NoteBase, DateBase, AttributeBase,
|
||||
self.desc = ""
|
||||
self.thumb = None
|
||||
|
||||
def serialize(self):
|
||||
def serialize(self, no_text_date = False):
|
||||
"""
|
||||
Convert the data held in the event to a Python tuple that
|
||||
represents all the data elements.
|
||||
@@ -105,7 +105,7 @@ class MediaObject(SourceBase, NoteBase, DateBase, AttributeBase,
|
||||
SourceBase.serialize(self),
|
||||
NoteBase.serialize(self),
|
||||
self.change,
|
||||
DateBase.serialize(self),
|
||||
DateBase.serialize(self, no_text_date),
|
||||
self.marker.serialize(),
|
||||
self.private)
|
||||
|
||||
|
Reference in New Issue
Block a user