Mark workspace dirty when shift-click-drag detaches wires

Fixes #2260
This commit is contained in:
Nick O'Leary 2019-08-09 10:24:52 +01:00
parent defa9a2270
commit 6a4760e291
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 9 additions and 6 deletions

View File

@ -1221,12 +1221,15 @@ RED.view = (function() {
removedLinks.push(drag_lines[i].link)
}
}
historyEvent = {
t:"delete",
links: removedLinks,
dirty:RED.nodes.dirty()
};
RED.history.push(historyEvent);
if (removedLinks.length > 0) {
historyEvent = {
t:"delete",
links: removedLinks,
dirty:RED.nodes.dirty()
};
RED.history.push(historyEvent);
RED.nodes.dirty(true);
}
hideDragLines();
}
if (lasso) {