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)