mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 13:28:04 +02:00
IDE: made destroy hint windows more robust vs errors
git-svn-id: trunk@15807 -
This commit is contained in:
parent
6fb1936620
commit
361831a886
@ -700,9 +700,10 @@ end;
|
||||
|
||||
destructor TCodeContextFrm.Destroy;
|
||||
begin
|
||||
inherited Destroy;
|
||||
Application.RemoveAllHandlersOfObject(Self);
|
||||
if CodeContextFrm=Self then
|
||||
CodeContextFrm:=nil;
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
@ -50,8 +50,6 @@ type
|
||||
property Control: TWinControl read FControl write SetControl;
|
||||
end;
|
||||
|
||||
{ TCodeHintFrm }
|
||||
|
||||
{ TSrcEditHintWindow }
|
||||
|
||||
TSrcEditHintWindow = class(THintWindow)
|
||||
@ -315,9 +313,10 @@ end;
|
||||
|
||||
destructor TSrcEditHintWindow.Destroy;
|
||||
begin
|
||||
inherited Destroy;
|
||||
Application.RemoveAllHandlersOfObject(Self);
|
||||
if SrcEditHintWindow=Self then
|
||||
SrcEditHintWindow:=nil;
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
procedure TSrcEditHintWindow.UpdateHints;
|
||||
|
Loading…
Reference in New Issue
Block a user