* src/Editors/_EditMedia.py (EditMedia.save): Use absolute path
to determine mime type. svn: r7092
This commit is contained in:
parent
5569f78767
commit
6ac1e3a1f5
@ -1,4 +1,6 @@
|
|||||||
2006-07-29 Alex Roitman <shura@gramps-project.org>
|
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/PageView.py (PersonNavView.filter_editor): Catch exception.
|
||||||
* src/DataViews/_FamilyList.py (FamilyListView.filter_editor):
|
* src/DataViews/_FamilyList.py (FamilyListView.filter_editor):
|
||||||
Catch exception.
|
Catch exception.
|
||||||
|
@ -196,7 +196,7 @@ class EditMedia(EditPrimary):
|
|||||||
path = self.glade.get_widget('path').get_text()
|
path = self.glade.get_widget('path').get_text()
|
||||||
|
|
||||||
if path != self.obj.get_path():
|
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_mime_type(mime)
|
||||||
self.obj.set_path(path)
|
self.obj.set_path(path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user