From 4b1036e679b5cc6c3a0b6aac1cd99b0562bb9a28 Mon Sep 17 00:00:00 2001 From: John Maxwell Date: Wed, 25 Feb 2026 09:45:36 -0800 Subject: [PATCH 1/2] Fix LT-22354: FW crashes when deleting a category --- Src/xWorks/DTMenuHandler.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/xWorks/DTMenuHandler.cs b/Src/xWorks/DTMenuHandler.cs index 84d0bbd14c..a4abb51f1f 100644 --- a/Src/xWorks/DTMenuHandler.cs +++ b/Src/xWorks/DTMenuHandler.cs @@ -651,6 +651,10 @@ private void MoveSlot(IMoInflAffixSlot slot, IPartOfSpeech selectedPOS) } private void MoveTemplate(IMoInflAffixTemplate template, IPartOfSpeech selectedPOS) { + if (template.Owner == selectedPOS) + { + return; + } UndoableUnitOfWorkHelper.DoUsingNewOrCurrentUOW("Undo Move Template", "Redo Move Template", Cache.ActionHandlerAccessor, () => { From cee031c242b2005e6a1ca238771c4547c28d8eaa Mon Sep 17 00:00:00 2001 From: John Maxwell Date: Wed, 25 Feb 2026 10:33:47 -0800 Subject: [PATCH 2/2] Add comment as requested by Jason --- Src/xWorks/DTMenuHandler.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/xWorks/DTMenuHandler.cs b/Src/xWorks/DTMenuHandler.cs index a4abb51f1f..5bd344373b 100644 --- a/Src/xWorks/DTMenuHandler.cs +++ b/Src/xWorks/DTMenuHandler.cs @@ -653,6 +653,7 @@ private void MoveTemplate(IMoInflAffixTemplate template, IPartOfSpeech selectedP { if (template.Owner == selectedPOS) { + // Don't move the template to selectedPOS if it is already there. return; } UndoableUnitOfWorkHelper.DoUsingNewOrCurrentUOW("Undo Move Template",