RxFPC:fix AV on close child window
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9431 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
2a965808d4
commit
5609399247
@ -403,6 +403,8 @@ begin
|
|||||||
if (FTaskPanel.Components[i] is TRxMDIButton) and (TRxMDIButton(FTaskPanel.Components[i]).NavForm = Form) then
|
if (FTaskPanel.Components[i] is TRxMDIButton) and (TRxMDIButton(FTaskPanel.Components[i]).NavForm = Form) then
|
||||||
TRxMDIButton(FTaskPanel.Components[i]).FActiveControl:=nil;
|
TRxMDIButton(FTaskPanel.Components[i]).FActiveControl:=nil;
|
||||||
end;
|
end;
|
||||||
|
if FCurrentChildWindow = Form then
|
||||||
|
FCurrentChildWindow := nil;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user