Set local flag for drag/drop images from web
svn: r492
This commit is contained in:
parent
7d454839b7
commit
0b131dfd41
@ -259,6 +259,7 @@ class Gallery(ImageSelect):
|
|||||||
photo = Photo()
|
photo = Photo()
|
||||||
photo.setMimeType(mime)
|
photo.setMimeType(mime)
|
||||||
photo.setDescription(d)
|
photo.setDescription(d)
|
||||||
|
photo.setLocal(1)
|
||||||
self.savephoto(photo)
|
self.savephoto(photo)
|
||||||
try:
|
try:
|
||||||
name = RelImage.import_media_object(tfile,self.path,photo.getId())
|
name = RelImage.import_media_object(tfile,self.path,photo.getId())
|
||||||
@ -266,6 +267,7 @@ class Gallery(ImageSelect):
|
|||||||
except:
|
except:
|
||||||
GnomeErrorDialog(_("Could not import %s") % d)
|
GnomeErrorDialog(_("Could not import %s") % d)
|
||||||
return
|
return
|
||||||
|
utils.modified()
|
||||||
else:
|
else:
|
||||||
if self.db.getObjectMap().has_key(data.data):
|
if self.db.getObjectMap().has_key(data.data):
|
||||||
index = 0
|
index = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user