change relation.appendMember to use the undo system, and update various places as...
[potlatch2.git] / net / systemeD / halcyon / connection / actions / RemoveNodeFromWayAction.as
index 239d8d69464d9885697ed736db10d8afc62e2fce..760866aca3dac520015287355d71506629ce1e36 100644 (file)
@@ -24,6 +24,7 @@ package net.systemeD.halcyon.connection.actions {
                        
                        if ( nodeRemovedFrom.length > 0 ) {
                            node.removeParent(entity);
+                           entity.deleted = nodeList.length == 0;
                            markDirty();
                            return SUCCESS;
                        }
@@ -40,6 +41,7 @@ package net.systemeD.halcyon.connection.actions {
                entity.dispatchEvent(new WayNodeEvent(Connection.WAY_NODE_ADDED, node, Way(entity), index));
             }
             
+            entity.deleted = nodeList.length == 0;
             markClean();
             
             return SUCCESS;