Merge pull request #663 from picklesrus/develop-fix-xml-load

Fix #648. It was calling method on the wrong object. Broken by refact…
This commit is contained in:
Rachel Fenichel
2016-10-04 13:19:19 -07:00
committed by GitHub

View File

@@ -735,7 +735,7 @@ WorkspaceFactoryController.prototype.importFile = function(file, importMode) {
// Confirm that the user wants to override their current toolbox.
var hasToolboxElements = controller.model.hasElements() ||
controller.getAllBlocks().length > 0;
controller.toolboxWorkspace.getAllBlocks().length > 0;
if (hasToolboxElements &&
!confirm('Are you sure you want to import? You will lose your '
+ 'current toolbox. ')) {