Commit 84838a67 authored by Neil Fraser's avatar Neil Fraser

Don't delete connected child blocks.

parent 96d5987d
......@@ -456,7 +456,7 @@ Blockly.BlockSvg.prototype.onMouseUp_ = function(e) {
// Don't throw an object in the trash can if it just got connected.
this_.workspace.trashcan.close();
}
} else if (Blockly.selected.isDeletable() &&
} else if (!this_.getParent() && Blockly.selected.isDeletable() &&
this_.workspace.isDeleteArea(e)) {
var trashcan = this_.workspace.trashcan;
if (trashcan) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment