From 2f31096abdefb773ea4079a6e29a147c51dc3c13 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 28 Apr 2016 14:07:27 -0400 Subject: [PATCH] 9387: Crash on adding media --- gramps/gui/editors/editmedia.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gui/editors/editmedia.py b/gramps/gui/editors/editmedia.py index 8d685662c..42cc4abcc 100644 --- a/gramps/gui/editors/editmedia.py +++ b/gramps/gui/editors/editmedia.py @@ -84,7 +84,7 @@ class EditMedia(EditPrimary): AddMedia(dbstate, self.uistate, self.track, self.obj, self._update_addmedia) - def empty_media(self): + def empty_object(self): return Media() def get_menu_title(self): @@ -351,10 +351,10 @@ class EditMedia(EditPrimary): if orig: cmp_obj = orig else: - cmp_obj = self.empty_media() + cmp_obj = self.empty_object() return cmp_obj.serialize(True)[1:] != self.obj.serialize(True)[1:] else: - cmp_obj = self.empty_media() + cmp_obj = self.empty_object() return cmp_obj.serialize(True)[1:] != self.obj.serialize()[1:] class DeleteMediaQuery(object):