LCL: make sure Application is assigned in UpdateShowInTaskBar. Part of issue #18934.

git-svn-id: trunk@29892 -
This commit is contained in:
juha 2011-03-17 14:35:06 +00:00
parent 039dfbebfe
commit 8901a0b14d

View File

@ -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