mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 13:19:21 +02:00
LCL: make sure Application is assigned in UpdateShowInTaskBar. Part of issue #18934.
git-svn-id: trunk@29892 -
This commit is contained in:
parent
039dfbebfe
commit
8901a0b14d
@ -827,8 +827,9 @@ procedure TCustomForm.UpdateShowInTaskBar;
|
||||
var
|
||||
Value: TShowInTaskBar;
|
||||
begin
|
||||
if (Application.MainForm = Self) or (not HandleAllocated) or
|
||||
Assigned(Parent) or (FormStyle = fsMDIChild) or not Showing then Exit;
|
||||
if (Assigned(Application) and (Application.MainForm = Self)) or
|
||||
(not HandleAllocated) or Assigned(Parent) or
|
||||
(FormStyle = fsMDIChild) or not Showing then Exit;
|
||||
Value := GetEffectiveShowInTaskBar;
|
||||
if FRealizedShowInTaskBar <> Value then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user