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@sugarlabs.org>2013-05-09 23:13:35 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-05-09 23:13:35 (GMT)
commit0ff6b1c48dcff0acdd38536596f0d2391070cbc1 (patch)
tree87217d0a10e5dad8884546487442361f516a6372 /TurtleArt/tawindow.py
parent58d8edc5a4a56c1e7a72d852bc969b3bf9f8efe5 (diff)
check for myblocks palette
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 8de5e2e..eb9478f 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1401,7 +1401,8 @@ before making changes to your Turtle Blocks program'))
self._restore_from_trash(find_top_block(blk))
elif blk.type == 'proto':
if self.deleting_blocks:
- if self.selected_palette == \
+ if 'myblocks' in palette_names and \
+ self.selected_palette == \
palette_names.index('myblocks'):
self._delete_stack_alert(blk)
self.parent.get_window().set_cursor(