Don't delete connected child blocks.

This commit is contained in:
Neil Fraser
2015-08-20 12:07:48 -07:00
parent 96d5987db1
commit 84838a67f3

View File

@@ -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) {