* src/Editors/_EditMedia.py (EditMedia.save): don't set path on

a save


svn: r7270
This commit is contained in:
Don Allingham 2006-08-26 14:18:47 +00:00
parent 6be19c2105
commit 1784b402c3
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,6 @@
2006-08-26 Don Allingham <don@gramps-project.org>
* src/Editors/_EditMedia.py (EditMedia.save): don't set path on
a save
* src/Config/_GrampsConfigKeys.py: set toolbar-on to 1 if the gconf
schemas were not installed properly

View File

@ -198,7 +198,9 @@ class EditMedia(EditPrimary):
if path != self.obj.get_path():
mime = Mime.get_type(os.path.abspath(path))
self.obj.set_mime_type(mime)
self.obj.set_path(path)
if self.obj.get_mime_type():
self.obj.set_path(path)
trans = self.db.transaction_begin()
self.db.commit_media_object(self.obj,trans)