[gcompris/gcomprixogoo] Fixed a bug where the old items where not deleted on a file load.



commit a2047bc64b0aa57e03a2df5755ba5864c8497cf4
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Mon Nov 2 08:39:52 2009 +0100

    Fixed a bug where the old items where not deleted on a file load.

 src/anim-activity/anim.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/anim-activity/anim.py b/src/anim-activity/anim.py
index 791a771..b6204aa 100644
--- a/src/anim-activity/anim.py
+++ b/src/anim-activity/anim.py
@@ -773,7 +773,8 @@ class Gcompris_anim:
         if (desc == 'GCompris draw 3 cPikle file'
             or desc == 'GCompris anim 3 cPikle file'):
 
-          for item in self.animlist:
+          self.deselect()
+          for item in self.animlist[:]:
             item.delete()
 
           self.timeline.set_lastmark(pickle.load(file))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]