change relation.appendMember to use the undo system, and update various places as...
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / TurnRestrictionIcon.mxml
index 378d89b7cdec22e76a5030e09c607b015af5e2d9..943a41c9c6080738697a9f9bf2e44e4c586c5ad1 100644 (file)
                for each (var memberEntity:Entity in old) {
                        rel.removeMember(memberEntity, undo.push);
                }
-               undo.doAction();
 
                // now add new entity
-               // ** FIXME - appendMember should be undoable
-               rel.appendMember(new RelationMember(entity,role))
+               rel.appendMember(new RelationMember(entity,role), undo.push);
+
+        undo.doAction();
 
                if (show.label=='Hide') { setHighlights(true); }
        }