diff --git a/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/ctlXMLEdit.cs b/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/ctlXMLEdit.cs index 73219830..557a8a02 100644 --- a/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/ctlXMLEdit.cs +++ b/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/ctlXMLEdit.cs @@ -440,8 +440,17 @@ namespace ctlXMLEditLib if (parentNode == null) parentNode = node.SelectSingleNode("*/" + parent); if (parentNode != null) { + bool orgMySaveXML = mysavexml; tb.Text = parentNode.InnerText; // set the P/C Child text box to the parent's value tb.ForeColor = SystemColors.GrayText; + // B2021-077 Setting tb.Text triggers the need to save. + // In this case it's for visual purposes only, so no need to trigger the save + // but if mysavexml is already turn, then don't set it to false + if (!orgMySaveXML) + { + mysavexml = false; + dosaveflag = false; + } break; } }