add undo for creating stuff
[potlatch2.git] / net / systemeD / potlatch2 / controller / DragWayNode.as
index b2e2668..d11df09 100644 (file)
@@ -34,7 +34,8 @@ package net.systemeD.potlatch2.controller {
 //                     return endDrag();
                                } else if (event.shiftKey && !isNew) {
                                        // start new way
-                                       var way:Way = controller.connection.createWay({}, [entity]);
+                                       var way:Way = controller.connection.createWay({}, [entity],
+                                           MainUndoStack.getGlobalStack().addAction);
                                        return new DrawWay(way, true, false);
                                } else if (event.shiftKey && isNew) {
                        return new SelectedWayNode(selectedWay,draggingNode);