fix, temp, hang when applying the new shortcuts

This commit is contained in:
Basile Burg 2015-12-06 06:33:11 +01:00
parent 9cfad0014e
commit 6e54c83473
1 changed files with 6 additions and 2 deletions

View File

@ -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}