change relation.appendMember to use the undo system, and update various places as...
[potlatch2.git] / net / systemeD / halcyon / connection / actions / DeleteNodeAction.as
index 323ba0746fbc2caafdd545bb648c35d8716470df..b5bebfa4e956629c2bf2510da501e8fe0f8c7640 100644 (file)
@@ -34,7 +34,7 @@ package net.systemeD.halcyon.connection.actions {
             } else {
               markDirty();
             }
-            node.dispatchEvent(new EntityEvent(Connection.NODE_DELETED, node));
+            node.dispatchEvent(new EntityEvent(Connection.NODE_DELETED, node));        // delete NodeUI
             
             return SUCCESS;
         }
@@ -49,7 +49,7 @@ package net.systemeD.halcyon.connection.actions {
             } else {
               markClean();
             }
-            entity.dispatchEvent(new EntityEvent(Connection.NEW_NODE, entity));
+            Connection.getConnection().dispatchEvent(new EntityEvent(Connection.NEW_NODE, entity));
             if ( effects != null )
                 effects.undoAction();
             return SUCCESS;