B2017-159: Don’t allow paste of step that was deleted by clearing its text.

This commit is contained in:
Kathy Ruffing 2017-08-01 13:18:12 +00:00
parent df959efb79
commit a223b72423

View File

@ -953,6 +953,13 @@ namespace Volian.Controls.Library
HandleSqlExceptionOnDelete(ex);
return null;
}
// B2017-159: Don't allow paste if this deleted item is in paste buffer:
if (MyStepPanel.MyStepTabPanel.MyDisplayTabControl.MyCopyStep != null && MyStepPanel.MyStepTabPanel.MyDisplayTabControl.MyCopyStep.ItemID == MyItemInfo.ItemID)
{
MyStepPanel.MyStepTabPanel.MyDisplayTabControl.MyCopyStep = null;
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.SetPasteButtons(false);
}
// Remove EditItems
//_MyTimer.ActiveProcess = "RemoveFromParentsChildList";
RemoveFromParentsChildList();