* src/Editors/_EditMedia.py (EditMedia.save): don't set path on
a save svn: r7270
This commit is contained in:
parent
aeb6e9a42e
commit
787a234cc1
@ -1,4 +1,6 @@
|
|||||||
2006-08-26 Don Allingham <don@gramps-project.org>
|
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
|
* src/Config/_GrampsConfigKeys.py: set toolbar-on to 1 if the gconf
|
||||||
schemas were not installed properly
|
schemas were not installed properly
|
||||||
|
|
||||||
|
@ -198,7 +198,9 @@ class EditMedia(EditPrimary):
|
|||||||
if path != self.obj.get_path():
|
if path != self.obj.get_path():
|
||||||
mime = Mime.get_type(os.path.abspath(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)
|
|
||||||
|
if self.obj.get_mime_type():
|
||||||
|
self.obj.set_path(path)
|
||||||
|
|
||||||
trans = self.db.transaction_begin()
|
trans = self.db.transaction_begin()
|
||||||
self.db.commit_media_object(self.obj,trans)
|
self.db.commit_media_object(self.obj,trans)
|
||||||
|
Loading…
Reference in New Issue
Block a user