You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-12-13 21:45:55 +02:00
Fixed possible access violation in Lazarus_Linux_QT6/SimpleBrowser
This commit is contained in:
@@ -174,7 +174,7 @@ begin
|
|||||||
FClosing := True;
|
FClosing := True;
|
||||||
Visible := False;
|
Visible := False;
|
||||||
Chromium1.CloseBrowser(True);
|
Chromium1.CloseBrowser(True);
|
||||||
CEFLinkedWindowParent1.Free;
|
FreeAndNil(CEFLinkedWindowParent1);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
{%Endregion}
|
{%Endregion}
|
||||||
@@ -219,7 +219,8 @@ end;
|
|||||||
|
|
||||||
procedure TMainForm.BrowserSetFocusMsg(Data: PtrInt);
|
procedure TMainForm.BrowserSetFocusMsg(Data: PtrInt);
|
||||||
begin
|
begin
|
||||||
CEFLinkedWindowParent1.SetFocus;
|
if assigned(CEFLinkedWindowParent1) then
|
||||||
|
CEFLinkedWindowParent1.SetFocus;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMainForm.WMMove(var Message: TLMMove);
|
procedure TMainForm.WMMove(var Message: TLMMove);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 799,
|
"InternalVersion" : 800,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "140.1.14"
|
"Version" : "140.1.14"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user