Make the undo for unjoin work
authorAndy Allan <gravitystorm@gmail.com>
Thu, 4 Nov 2010 17:39:05 +0000 (17:39 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Thu, 4 Nov 2010 17:39:05 +0000 (17:39 +0000)
net/systemeD/halcyon/connection/actions/UnjoinNodeAction.as

index 1f281374e797fb7df88045e4ec342e67ecbb5312..d9dac6f0d777d6190ae4cd424b4d3f339dadf987 100644 (file)
@@ -42,9 +42,13 @@ package net.systemeD.halcyon.connection.actions {
         }
             
         public override function undoAction():uint {
-            trace("fail");
+            node.suspend();
+            selectedWay.suspend();
+            super.undoAction();
+            selectedWay.resume();
+            node.resume();
             
-            return FAIL;
+            return SUCCESS;
         }
     }
 }