mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-09 23:05:58 +02:00
TCustomTabControl: don't check for parent in call to FindNextControl in ActivateFirstControlOnPage. Part of issue #40775.
This commit is contained in:
parent
641a76447b
commit
5e54b2f921
@ -783,7 +783,7 @@ begin
|
|||||||
//don't steal focus if a control outside is ActiveControl
|
//don't steal focus if a control outside is ActiveControl
|
||||||
if (Self = ActiveControl) or Self.ContainsControl(ActiveControl) then
|
if (Self = ActiveControl) or Self.ContainsControl(ActiveControl) then
|
||||||
begin
|
begin
|
||||||
C := APage.FindNextControl(Self, True, True, True);
|
C := APage.FindNextControl(Self, True, True, False);
|
||||||
if Assigned(C) then
|
if Assigned(C) then
|
||||||
ParentForm.ActiveControl := C;
|
ParentForm.ActiveControl := C;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user