diff options
author | Bruno Coudoin <bruno.coudoin@free.fr> | 2009-11-02 07:39:52 (GMT) |
---|---|---|
committer | Bruno Coudoin <bruno.coudoin@free.fr> | 2009-11-02 07:39:52 (GMT) |
commit | a2047bc64b0aa57e03a2df5755ba5864c8497cf4 (patch) | |
tree | 24838952784451ecc90cef9db3c0481b91773280 | |
parent | 6f7a04ad55c342c6137a06259f27fee8b21e0cd7 (diff) |
Fixed a bug where the old items where not deleted on a file load.
-rw-r--r-- | 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)) |