* src/Editors/_EditMedia.py (EditMedia.save): Use absolute path

to determine mime type.


svn: r7092
This commit is contained in:
Alex Roitman 2006-07-30 04:01:45 +00:00
parent 5569f78767
commit 6ac1e3a1f5
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
2006-07-29 Alex Roitman <shura@gramps-project.org>
* src/Editors/_EditMedia.py (EditMedia.save): Use absolute path
to determine mime type.
* src/PageView.py (PersonNavView.filter_editor): Catch exception.
* src/DataViews/_FamilyList.py (FamilyListView.filter_editor):
Catch exception.

View File

@ -196,7 +196,7 @@ class EditMedia(EditPrimary):
path = self.glade.get_widget('path').get_text()
if path != self.obj.get_path():
mime = Mime.get_type(path)
mime = Mime.get_type(os.path.abspath(path))
self.obj.set_mime_type(mime)
self.obj.set_path(path)