* src/ImageSelect.py: Recompute mime type in case of path change

svn: r5392
This commit is contained in:
Julio Sánchez 2005-11-10 09:58:38 +00:00
parent 8abcd6e233
commit 47e7ce1481
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
2005-11-10 Julio Sanchez <jsanchez@users.sourceforge.net>
* 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 <don@gramps-project.org>
* src/plugins/DetAncestralReport.py: fix spacing

View File

@ -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()):