Set local flag for drag/drop images from web

svn: r492
This commit is contained in:
Don Allingham 2001-10-19 01:48:44 +00:00
parent 7d454839b7
commit 0b131dfd41

View File

@ -259,6 +259,7 @@ class Gallery(ImageSelect):
photo = Photo()
photo.setMimeType(mime)
photo.setDescription(d)
photo.setLocal(1)
self.savephoto(photo)
try:
name = RelImage.import_media_object(tfile,self.path,photo.getId())
@ -266,6 +267,7 @@ class Gallery(ImageSelect):
except:
GnomeErrorDialog(_("Could not import %s") % d)
return
utils.modified()
else:
if self.db.getObjectMap().has_key(data.data):
index = 0