From c452ad5e132bb638f8e1ec64e33bc3eda9a264f3 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 16 Sep 2019 15:41:08 +0000 Subject: [PATCH] B2019-139 check if we are on a procedure title or section title that is empty before trying to delete when you move off of the empty title in the step editor. --- PROMS/Volian.Controls.Library/StepPanel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepPanel.cs b/PROMS/Volian.Controls.Library/StepPanel.cs index 1b6de68f..01efe458 100644 --- a/PROMS/Volian.Controls.Library/StepPanel.cs +++ b/PROMS/Volian.Controls.Library/StepPanel.cs @@ -452,7 +452,8 @@ namespace Volian.Controls.Library if(value != null) ItemInfo.ConvertInvalidTransitionsToText(value.MyItemInfo); if (lastEI != null && lastEI.BeingDisposed == false) { - bool shouldDelete = !lastEI.BeingRemoved && lastEI.Empty && (lastEI.MyItemInfo.MyContent.ContentEntryCount <= 0); + // B2019-139 if a procedure with out a title, or a section without a title, don't try to delete when you are moving off of the title while in the step editor + bool shouldDelete = !lastEI.BeingRemoved && lastEI.Empty && (lastEI.MyItemInfo.MyContent.ContentEntryCount <= 0) && !_SelectedItemInfo.IsProcedure && !_SelectedItemInfo.IsSection; if (shouldDelete) { if (lastEI.HasChildren)