Changed links get done in action

This commit is contained in:
Tim Young 2018-05-14 15:05:29 -05:00
parent 1d917fd097
commit 3ba3023ef0

View File

@ -1277,9 +1277,12 @@ namespace EduNetworkBuilder
if (thing.Tag != null) if (thing.Tag != null)
{ {
NetworkLink NL = (NetworkLink)thing.Tag; NetworkLink NL = (NetworkLink)thing.Tag;
NetworkLink oldLink = NetworkLink.Clone(NL);
//This may delete the old link and make a new one //This may delete the old link and make a new one
LinkEditor LE = new LinkEditor(NL); LinkEditor LE = new LinkEditor(NL);
LE.ShowDialog(); LE.ShowDialog();
if (!NL.Equals(oldLink))
NB.DoActionChangeComponent(NL);
} }
myNetwork.TestForCompletion(true); myNetwork.TestForCompletion(true);
pbNetworkView.Update(); pbNetworkView.Update();