mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 15:37:51 +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
|
||||
begin
|
||||
FreeIconHandles;
|
||||
if BorderStyle <> bsDialog then
|
||||
if not (BorderStyle in [bsDialog, bsNone]) then // bsNone as workaround for #41189
|
||||
TWSCustomFormClass(WidgetSetClass).SetIcon(Self, SmallIconHandle, BigIconHandle)
|
||||
else
|
||||
TWSCustomFormClass(WidgetSetClass).SetIcon(Self, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user