C2015-022 Separate Windows Upgrade – new call to RemoveEnhancedFromConfig

This commit is contained in:
John Jenko 2018-03-12 14:35:49 +00:00
parent e4866e4ecc
commit d00ebcc35d

View File

@ -232,6 +232,7 @@ namespace Volian.Controls.Library
//myRTB.LastRtf = string.Empty; //myRTB.LastRtf = string.Empty;
myVFG.Clear(); myVFG.Clear();
myPicBox.Image = null; myPicBox.Image = null;
if (!tvAudits.IsDisposed) // fixes a crash that happend while debugging separate windows, have not been able to reproduce. left this IF check in just in case. - jsj 2-1-2018
tvAudits.Nodes.Clear(); tvAudits.Nodes.Clear();
if (MyItemInfo == null) if (MyItemInfo == null)
{ {
@ -643,7 +644,7 @@ namespace Volian.Controls.Library
// get id for step that is linked & see if it exists - if not, clear the enhanced config data // get id for step that is linked & see if it exists - if not, clear the enhanced config data
StepConfig sc = MyItemInfo.MyConfig as StepConfig; StepConfig sc = MyItemInfo.MyConfig as StepConfig;
ItemInfo iexists = ItemInfo.Get(sc.MyEnhancedDocuments[0].ItemID); ItemInfo iexists = ItemInfo.Get(sc.MyEnhancedDocuments[0].ItemID);
if (iexists == null) ItemInfo.RemoveEnhancedFromConfig(MyItemInfo, true); if (iexists == null) MyItemInfo.RemoveEnhancedFromConfig(true);
} }
myRTB.Clear(); myRTB.Clear();
myVFG.Clear(); myVFG.Clear();