* src/ImageSelect.py: Recompute mime type in case of path change
svn: r5392
This commit is contained in:
parent
8abcd6e233
commit
47e7ce1481
@ -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
|
||||
|
@ -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()):
|
||||
|
Loading…
Reference in New Issue
Block a user