No reason that I can see for bypassing the MainUndoStack for this one
authorAndy Allan <andy@gravitystorm.co.uk>
Fri, 27 May 2011 10:23:03 +0000 (11:23 +0100)
committerAndy Allan <andy@gravitystorm.co.uk>
Fri, 27 May 2011 10:23:03 +0000 (11:23 +0100)
net/systemeD/potlatch2/mapfeatures/editors/TurnRestrictionIcon.mxml

index 943a41c..25dd7df 100644 (file)
                // now add new entity
                rel.appendMember(new RelationMember(entity,role), undo.push);
 
-        undo.doAction();
+        MainUndoStack.getGlobalStack().addAction(action);
 
                if (show.label=='Hide') { setHighlights(true); }
        }