LCL: TCheckBox: Fixed the application crashes before the form is showing. Issue #35018

git-svn-id: trunk@60340 -
This commit is contained in:
michl 2019-02-05 21:13:43 +00:00
parent f72819e5bd
commit b6923ebc84

View File

@ -37,7 +37,7 @@ begin
//some widgetsets (gtk*) does not allow to uncheck a radio button
//only call OnChange if effectivelly changed
FState := RetrieveState;
if FState <> OldState then
if (FState <> OldState) and not (csLoading in ComponentState) then
DoClickOnChange;
end;
end;