diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index af70153ae..03e3625ec 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,6 @@ 2006-07-29 Alex Roitman + * 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. diff --git a/gramps2/src/Editors/_EditMedia.py b/gramps2/src/Editors/_EditMedia.py index d20bf03ce..775c539a4 100644 --- a/gramps2/src/Editors/_EditMedia.py +++ b/gramps2/src/Editors/_EditMedia.py @@ -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)