From a87e23af7eb74ba2ba8f459e8e19e20b69acccb4 Mon Sep 17 00:00:00 2001 From: John Jenko Date: Wed, 9 Sep 2026 14:51:51 -0400 Subject: [PATCH] =?UTF-8?q?C2026-053=20When=20restoring=20the=20open=20pro?= =?UTF-8?q?cedure=20tabs=20while=20starting=20up=20PROMS,=20don=E2=80=99t?= =?UTF-8?q?=20restore=20any=20of=20the=20Word=20section=20tabs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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.