Fix #648. It was calling method on the wrong object. Broken by refactoring in #606.

This commit is contained in:
Katelyn Mann
2016-10-04 13:17:09 -07:00
parent bec41c0065
commit e5635325d5

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. ')) {