From 6ac1e3a1f51db9763b7aecea9dd2df8d81230ab2 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 30 Jul 2006 04:01:45 +0000 Subject: [PATCH] * src/Editors/_EditMedia.py (EditMedia.save): Use absolute path to determine mime type. svn: r7092 --- ChangeLog | 2 ++ src/Editors/_EditMedia.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index af70153ae..03e3625ec 100644 --- a/ChangeLog +++ b/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/src/Editors/_EditMedia.py b/src/Editors/_EditMedia.py index d20bf03ce..775c539a4 100644 --- a/src/Editors/_EditMedia.py +++ b/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)