* src/ImageSelect.py: fix already_loaded initalization

svn: r5962
This commit is contained in:
Don Allingham 2006-02-19 18:40:30 +00:00
parent 5e7041cae4
commit acc52f6816
2 changed files with 5 additions and 2 deletions

View File

@ -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>
* src/plugins/Makefile.am: added Calendary.py and
holidays.xml

View File

@ -193,6 +193,8 @@ class ImageSelect:
internal = self.internal.get_active()
already_imported = None
if not internal:
if os.path.exists(filename) == 0:
msgstr = _("Cannot import %s")
@ -200,8 +202,6 @@ class ImageSelect:
ErrorDialog(msgstr % filename, msgstr2)
return
already_imported = None
for o_id in self.db.get_media_object_handles():
o = self.db.get_object_from_handle(o_id)
if o.get_path() == filename: