From c7d2140e1640bd353c97884211826c390c61ac42 Mon Sep 17 00:00:00 2001 From: mschill Date: Fri, 8 Nov 2024 15:37:49 -0500 Subject: [PATCH] B2024-090 If multiple tabs are left open, and Find is clicked before clicking on a tab, PROMS would crash. --- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index 378769a5..fb8e90dd 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -2385,6 +2385,16 @@ namespace VEPROMS OpenItem(_Procedure); // SelectedStepTabPanel needs to be set so the print buttons on the ribbon will work. SelectedStepTabPanel = tc.MyEditItem.MyStepPanel.MyStepTabPanel; + + //CSM B2024-090 - if last displaytab item, + //select the steptab panel for it + //and set the EditItem for Find/Replace + //otherwise will cause PROMS to crash if Find clicked before a Tab is given Focus + if ((DisPlayTabState.Rows.IndexOf(TabState) == DisPlayTabState.Rows.Count - 1)) + { + SelectedStepTabPanel.Select(); + dlgFindReplace.MyEditItem = tc.MyEditItem; + } } } } -- 2.47.2