mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 20:37:20 +01:00
LCL: Fix the unfired OnClick event issue better. Issue #29845, patch from FTurtle.
git-svn-id: trunk@51962 -
This commit is contained in:
parent
feaab08673
commit
31428e33d6
@ -28,7 +28,6 @@ type
|
||||
public
|
||||
constructor Create(TheRadioGroup: TCustomRadioGroup);
|
||||
procedure Assign(Source: TPersistent); override;
|
||||
procedure Clear; override;
|
||||
end;
|
||||
|
||||
{ TRadioGroupStringList }
|
||||
@ -40,6 +39,7 @@ begin
|
||||
FRadioGroup.UpdateAll
|
||||
else
|
||||
FRadioGroup.UpdateInternalObjectList;
|
||||
FRadioGroup.FLastClickedItemIndex := FRadioGroup.FItemIndex;
|
||||
end;
|
||||
|
||||
constructor TRadioGroupStringList.Create(TheRadioGroup: TCustomRadioGroup);
|
||||
@ -57,12 +57,6 @@ begin
|
||||
if SavedIndex < Count then FRadioGroup.ItemIndex := SavedIndex;
|
||||
end;
|
||||
|
||||
procedure TRadioGroupStringList.Clear;
|
||||
begin
|
||||
inherited Clear;
|
||||
FRadioGroup.FLastClickedItemIndex := -1;
|
||||
end;
|
||||
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCustomRadioGroup.Create
|
||||
|
||||
Loading…
Reference in New Issue
Block a user