mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 03:48:27 +02:00
LCL: Fix form icon appearing when modal form opens a border-less second modal form. Issue #41189, patch by @d7_2_laz.
This commit is contained in:
parent
212b6d0407
commit
939daf5466
@ -222,7 +222,7 @@ begin
|
|||||||
if HandleAllocated then
|
if HandleAllocated then
|
||||||
begin
|
begin
|
||||||
FreeIconHandles;
|
FreeIconHandles;
|
||||||
if BorderStyle <> bsDialog then
|
if not (BorderStyle in [bsDialog, bsNone]) then // bsNone as workaround for #41189
|
||||||
TWSCustomFormClass(WidgetSetClass).SetIcon(Self, SmallIconHandle, BigIconHandle)
|
TWSCustomFormClass(WidgetSetClass).SetIcon(Self, SmallIconHandle, BigIconHandle)
|
||||||
else
|
else
|
||||||
TWSCustomFormClass(WidgetSetClass).SetIcon(Self, 0, 0);
|
TWSCustomFormClass(WidgetSetClass).SetIcon(Self, 0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user