Ensure activeWorkspace is set when a flow contains no tabs

pull/572/head
Nick O'Leary 2015-02-20 10:05:42 +00:00
parent 2585e983a5
commit 9b26973883
1 changed files with 1 additions and 0 deletions

View File

@ -615,6 +615,7 @@ RED.nodes = (function() {
addWorkspace(defaultWorkspace); addWorkspace(defaultWorkspace);
RED.view.addWorkspace(defaultWorkspace); RED.view.addWorkspace(defaultWorkspace);
new_workspaces.push(defaultWorkspace); new_workspaces.push(defaultWorkspace);
activeWorkspace = RED.view.getWorkspace();
} }
var node_map = {}; var node_map = {};