From 06e71b1522183f6f22d0dc2f7ea1f671def18f12 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 16 Mar 2015 13:40:51 +0000 Subject: [PATCH] Reset the override changebar when the grid (table) changes --- PROMS/Volian.Controls.Library/GridItem.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/GridItem.cs b/PROMS/Volian.Controls.Library/GridItem.cs index 085b275b..83a2a49f 100644 --- a/PROMS/Volian.Controls.Library/GridItem.cs +++ b/PROMS/Volian.Controls.Library/GridItem.cs @@ -685,8 +685,16 @@ namespace Volian.Controls.Library sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId; if (itm.MyConfig == null) itm.MyContent.Config = sc.ToString(); } - itm.Save(); + + StepConfig myItmCfg =MyItemInfo.MyConfig as StepConfig; + // We saved changes made to some step text. Reset the change bar override. + // IF there is a step config remove the change bar override by setting the CBOverride value to null + // This fixes a problem reported by Farly where if the change bar or overridden to be off, the next + // time a change was made, the change bar remained turned off. + if (myItmCfg != null) + myItmCfg.Step_CBOverride = null; // clear the change bar override + MyItemInfo.MyContent.MyGrid.ResetContent(itm.MyContent.MyGrid); } return true;