* src/EditPerson.py: handle the new "dont-ask" key
* src/GrampsGconfKeys.py: handle the new "dont-ask" key * src/ImageSelect.py: remove debugging statements * src/Marriage.py: handle the new "dont-ask" key * src/QuestionDialog.py: handle the new "dont-ask" key * src/gramps.glade: added "dont ask" button to SaveDialog to turn off the nagging * src/data/gramps.schemas: added the "dont-ask" key svn: r3721
This commit is contained in:
@ -353,11 +353,9 @@ class Gallery(ImageSelect):
|
||||
|
||||
def savephoto(self, photo):
|
||||
"""Save the photo in the dataobj object. (Required function)"""
|
||||
print "In save photo"
|
||||
self.db.add_object(photo,None)
|
||||
oref = RelLib.MediaRef()
|
||||
oref.set_reference_handle(photo.get_handle())
|
||||
print photo.get_handle(), photo.get_path()
|
||||
self.db.set_thumbnail_image(photo.get_handle(),photo.get_path())
|
||||
self.dataobj.add_media_reference(oref)
|
||||
|
||||
|
Reference in New Issue
Block a user