From d00ebcc35d1fa718d2850551a3c49d91d99c5c3c Mon Sep 17 00:00:00 2001 From: John Date: Mon, 12 Mar 2018 14:35:49 +0000 Subject: [PATCH] =?UTF-8?q?C2015-022=20Separate=20Windows=20Upgrade=20?= =?UTF-8?q?=E2=80=93=20new=20call=20to=20RemoveEnhancedFromConfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/DisplayHistory.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplayHistory.cs b/PROMS/Volian.Controls.Library/DisplayHistory.cs index 8e9d504c..6ef9ba23 100644 --- a/PROMS/Volian.Controls.Library/DisplayHistory.cs +++ b/PROMS/Volian.Controls.Library/DisplayHistory.cs @@ -232,7 +232,8 @@ namespace Volian.Controls.Library //myRTB.LastRtf = string.Empty; myVFG.Clear(); myPicBox.Image = null; - tvAudits.Nodes.Clear(); + 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(); if (MyItemInfo == null) { this.Cursor = Cursors.Default; @@ -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 StepConfig sc = MyItemInfo.MyConfig as StepConfig; ItemInfo iexists = ItemInfo.Get(sc.MyEnhancedDocuments[0].ItemID); - if (iexists == null) ItemInfo.RemoveEnhancedFromConfig(MyItemInfo, true); + if (iexists == null) MyItemInfo.RemoveEnhancedFromConfig(true); } myRTB.Clear(); myVFG.Clear();