From a8055fc0053b0f650336eccd1c5e1a9b532d0d3d Mon Sep 17 00:00:00 2001 From: mattias Date: Sat, 11 May 2013 20:04:28 +0000 Subject: [PATCH] IDE: sourceeditor: disconnect OnIfdefNodeStateRequest git-svn-id: trunk@41135 - --- ide/sourceeditor.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ide/sourceeditor.pp b/ide/sourceeditor.pp index 922bc20a8d..fa13ae8ccd 100644 --- a/ide/sourceeditor.pp +++ b/ide/sourceeditor.pp @@ -4381,11 +4381,11 @@ Begin OnClearBookmark := @EditorClearBookmark; OnChangeUpdating := @EditorChangeUpdating; RegisterMouseActionExecHandler(@EditorHandleMouseAction); - // IMPORTANT: when you change above, don't forget updating UnbindEditor - Parent := AParent; {$IFDEF WithSynMarkupIfDef} OnIfdefNodeStateRequest := @DoIfDefNodeStateRequest;; {$ENDIF} + // IMPORTANT: when you change above, don't forget updating UnbindEditor + Parent := AParent; end; Manager.CodeTemplateModul.AddEditor(FEditor); Manager.FMacroRecorder.AddEditor(FEditor); @@ -5423,6 +5423,9 @@ begin OnPlaceBookmark := nil; OnClearBookmark := nil; OnChangeUpdating := nil; + {$IFDEF WithSynMarkupIfDef} + OnIfdefNodeStateRequest := nil; + {$ENDIF} UnregisterMouseActionExecHandler(@EditorHandleMouseAction); end; for i := 0 to EditorComponent.PluginCount - 1 do