B2021-077 When the Save button is used to save RO fields in a Parent/Child enabled RO, you were prompted to save when you selected a different tree node (in the left panel of the RO Editor)
This commit is contained in:
parent
f21c448739
commit
ea56515d15
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user