Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-11-07 20:04:06 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-11-07 20:04:06 (GMT)
commit4f3f27bd857e0de639d70c81150e8cbb1c2541b1 (patch)
tree5f0ba1a5c040adf69b9c6ae701d6cb76833b4346 /TurtleArt/tawindow.py
parent0b3653924f3b97011e5f3f72149fdd73cbffbb34 (diff)
don't clear start button when putting project into trash
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 18c0324..e0a9106 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1328,7 +1328,14 @@ class TurtleArtWindow():
elif blk.name == 'trashall':
for b in self.just_blocks():
if b.type != 'trash':
- self._put_in_trash(find_top_block(b))
+ if b.name == 'start': # Don't trash start block
+ b1 = b.connections[-1]
+ if b1 is not None:
+ b.connections[-1] = None
+ b1.connections[0] = None
+ self._put_in_trash(b1)
+ else:
+ self._put_in_trash(find_top_block(b))
elif blk.name in MACROS:
self.new_macro(blk.name, x + 20, y + 20)
else: