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; end;
{$ENDREGION} {$ENDREGION}
{$REGION ICEMultiDocObserver ----------------------------------------------------} {$REGION ICEMultiDocObserver ---------------------------------------------------}
procedure TCEEditorOptions.docNew(aDoc: TCESynMemo); procedure TCEEditorOptions.docNew(aDoc: TCESynMemo);
begin begin
applyChangeToEditor(aDoc); applyChangeToEditor(aDoc);
@ -451,6 +451,10 @@ begin
end; end;
// note: shortcut modifications are not reversible, // note: shortcut modifications are not reversible,
// they are sent from another option editor. // they are sent from another option editor.
fShortcutCount -= 1;
// TODO: modifies interface so that the target knows when the last
// item has been sent.
if fShortcutCount = 0 then
applyChangesFromSelf; applyChangesFromSelf;
end; end;
{$ENDREGION} {$ENDREGION}