diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index 99038aaa..015077d0 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -2561,13 +2561,16 @@ namespace VEPROMS // B2026-074 added flag (LoadingSavedProcTabs) to supress unnecessary event calls // this will help prevent PROMS from getting stuck continuously looping through the same events // when Word procedure tabs are restored. - tc.LoadingSavedProcTabs = true; + // C2026-053 leaving this flag in her for now should we decide to trouble-shoot reopening of Word tabs later on. + tc.LoadingSavedProcTabs = true; // we check for this flag in DSOTabPanel.cs when opening Word sections foreach (DataRow TabState in DisPlayTabState.Rows) { int _ItemID = (int)TabState["ItemID"]; ItemInfo _Procedure = ItemInfo.Get(_ItemID); - // Open procedure in the editor. - if (_Procedure == null) continue; //skip and continue with foreach + // C2026-053 Open procedure tab but only if it's NOT a Word section + // Needed to disable opening saved Word sections - at least for now. + // We were running into performace and random hanging issues with the Word tabs - maybe windows event related. + if (_Procedure == null || _Procedure.HasWordContent) continue; //skip and continue with foreach OpenItem(_Procedure); if (tc.MyEditItem == null) continue; // skip and continue with foreach // SelectedStepTabPanel needs to be set so the print buttons on the ribbon will work.