From 1d6e27ca42fafc01f5983bce0eaf250d7b247055 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 7 Feb 2004 16:50:24 +0000 Subject: [PATCH] Update svn: r2789 --- src/ImageSelect.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ImageSelect.py b/src/ImageSelect.py index 875f9cee8..028047494 100644 --- a/src/ImageSelect.py +++ b/src/ImageSelect.py @@ -266,12 +266,11 @@ class Gallery(ImageSelect): a[2].destroy() self.p_map = None self.canvas_list = None - # restore old photo list, in case we removed some and then - # hit cancel button or closed the window - if not ok: - if self.old_photo_list is not None: - self.dataobj.setPhotoList(self.old_photo_list) - + # restore old photo list, in case we removed some and then + # hit cancel button or closed the window + if not ok: + if self.old_photo_list is not None: + self.dataobj.setPhotoList(self.old_photo_list) def on_canvas1_event(self,obj,event): """