mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 23:16:09 +02:00
LCL: do not set ActiveControl if Parent=nil, bug #17716
git-svn-id: trunk@27900 -
This commit is contained in:
parent
41a9300a55
commit
3b1f0f9a20
@ -2577,7 +2577,8 @@ begin
|
||||
// activate focus if visible
|
||||
if Showing and (not (csDestroying in ComponentState)) then
|
||||
begin
|
||||
if Assigned(ActiveControl) and (not (csDesigning in ComponentState)) and Assigned(Parent) then
|
||||
if Assigned(ActiveControl) and (not (csDesigning in ComponentState))
|
||||
and (Parent=nil) then
|
||||
begin
|
||||
// automatically choose a control to focus
|
||||
{$IFDEF VerboseFocus}
|
||||
|
Loading…
Reference in New Issue
Block a user