change relation.appendMember to use the undo system, and update various places as...
[potlatch2.git] / net / systemeD / potlatch2 / RelationSelectPanel.mxml
index ea3712a87e542a13129adbcf3675125a207d7a33..574ba41acc096dcb8b05ac25ea5193b3384d7240 100644 (file)
@@ -41,7 +41,7 @@
         
         public function updateEntityAndClose():void {
           var relation:Relation = conn.getRelation(relationSelector.selectedItem.relId);
-          relation.appendMember(new RelationMember(entity, ''));
+          relation.appendMember(new RelationMember(entity, ''), MainUndoStack.getGlobalStack().addAction);
           PopUpManager.removePopUp(this);
         }