* src/ImageSelect.py: fix already_loaded initalization
svn: r5962
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2006-02-19 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/ImageSelect.py: fix already_loaded initalization
|
||||||
|
|
||||||
2006-02-18 Don Allingham <don@gramps-project.org>
|
2006-02-18 Don Allingham <don@gramps-project.org>
|
||||||
* src/plugins/Makefile.am: added Calendary.py and
|
* src/plugins/Makefile.am: added Calendary.py and
|
||||||
holidays.xml
|
holidays.xml
|
||||||
|
@@ -193,6 +193,8 @@ class ImageSelect:
|
|||||||
|
|
||||||
internal = self.internal.get_active()
|
internal = self.internal.get_active()
|
||||||
|
|
||||||
|
already_imported = None
|
||||||
|
|
||||||
if not internal:
|
if not internal:
|
||||||
if os.path.exists(filename) == 0:
|
if os.path.exists(filename) == 0:
|
||||||
msgstr = _("Cannot import %s")
|
msgstr = _("Cannot import %s")
|
||||||
@@ -200,8 +202,6 @@ class ImageSelect:
|
|||||||
ErrorDialog(msgstr % filename, msgstr2)
|
ErrorDialog(msgstr % filename, msgstr2)
|
||||||
return
|
return
|
||||||
|
|
||||||
already_imported = None
|
|
||||||
|
|
||||||
for o_id in self.db.get_media_object_handles():
|
for o_id in self.db.get_media_object_handles():
|
||||||
o = self.db.get_object_from_handle(o_id)
|
o = self.db.get_object_from_handle(o_id)
|
||||||
if o.get_path() == filename:
|
if o.get_path() == filename:
|
||||||
|
Reference in New Issue
Block a user