From 4c42d40c5b0853729810b8d63be0cc730827edf1 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 11 Jul 2002 16:19:10 +0000 Subject: [PATCH] Handle 'name' not being initialized. svn: r1074 --- src/ImageSelect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ImageSelect.py b/src/ImageSelect.py index b471225b7..8f4086438 100644 --- a/src/ImageSelect.py +++ b/src/ImageSelect.py @@ -158,6 +158,8 @@ class ImageSelect: name = RelImage.import_media_object(filename,self.path, mobj.getId()) mobj.setLocal(1) + else: + name = filename else: if self.external.get_active() == 1: name = filename