diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 4ed077b7f..7af9017da 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,5 +1,6 @@ 2005-11-10 Julio Sanchez * src/plugins/rel_es.py: More detail for some relationships + * src/ImageSelect.py: Recompute mime type in case of path change 2005-11-09 Don Allingham * src/plugins/DetAncestralReport.py: fix spacing diff --git a/gramps2/src/ImageSelect.py b/gramps2/src/ImageSelect.py index c20a1172b..03dfb88b2 100644 --- a/gramps2/src/ImageSelect.py +++ b/gramps2/src/ImageSelect.py @@ -1343,6 +1343,9 @@ class GlobalMediaProperties: desc = unicode(self.descr_window.get_text()) note = self.obj.get_note() path = self.change_dialog.get_widget('path').get_text() + if path != self.obj.get_path(): + mime = GrampsMime.get_type(path) + self.obj.set_mime_type(mime) self.obj.set_path(path) if not self.date_object.is_equal(self.obj.get_date_object()):