From 6e54c834733c264b70bf4740dd557466328d2e27 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 6 Dec 2015 06:33:11 +0100 Subject: [PATCH] fix, temp, hang when applying the new shortcuts --- src/ce_editoroptions.pas | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ce_editoroptions.pas b/src/ce_editoroptions.pas index 067262a6..178dac4c 100644 --- a/src/ce_editoroptions.pas +++ b/src/ce_editoroptions.pas @@ -386,7 +386,7 @@ begin end; {$ENDREGION} -{$REGION ICEMultiDocObserver ----------------------------------------------------} +{$REGION ICEMultiDocObserver ---------------------------------------------------} procedure TCEEditorOptions.docNew(aDoc: TCESynMemo); begin applyChangeToEditor(aDoc); @@ -451,7 +451,11 @@ begin end; // note: shortcut modifications are not reversible, // they are sent from another option editor. - applyChangesFromSelf; + fShortcutCount -= 1; + // TODO: modifies interface so that the target knows when the last + // item has been sent. + if fShortcutCount = 0 then + applyChangesFromSelf; end; {$ENDREGION}