mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 17:49:14 +02:00
IDE: code context dlg: free via application
git-svn-id: trunk@40027 -
This commit is contained in:
parent
32dca9e242
commit
5df38ac5b8
@ -41,7 +41,7 @@ uses
|
||||
Graphics, Dialogs, LCLType, LCLIntf, Themes, Buttons, SynEdit, SynEditKeyCmds,
|
||||
BasicCodeTools, KeywordFuncLists, LinkScanner, CodeCache, FindDeclarationTool,
|
||||
IdentCompletionTool, CodeTree, CodeAtom, PascalParserTool, CodeToolManager,
|
||||
SourceChanger, SrcEditorIntf, IDEProcs, LazarusIDEStrConsts;
|
||||
SourceChanger, SrcEditorIntf, LazIDEIntf, IDEProcs, LazarusIDEStrConsts;
|
||||
|
||||
type
|
||||
|
||||
@ -126,7 +126,7 @@ begin
|
||||
(CodeContexts = nil) or (CodeContexts.Count = 0) then
|
||||
Exit;
|
||||
if CodeContextFrm = nil then
|
||||
CodeContextFrm := TCodeContextFrm.Create(nil);
|
||||
CodeContextFrm := TCodeContextFrm.Create(LazarusIDE.OwningComponent);
|
||||
CodeContextFrm.SetCodeContexts(CodeContexts);
|
||||
|
||||
CodeContextFrm.Visible := True;
|
||||
@ -1159,8 +1159,5 @@ begin
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
finalization
|
||||
FreeThenNil(CodeContextFrm);
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user