lcl: clear control items when lookup list source is inactive. Issue #30545

git-svn-id: trunk@53002 -
This commit is contained in:
blikblum 2016-09-20 23:39:32 +00:00
parent c3d7d6e046
commit 835be86890

View File

@ -138,7 +138,12 @@ begin
if (csDestroying in ComponentState) then
Exit;
if FListLink.Active then
Initialize(FControlLink, FControlItems);
Initialize(FControlLink, FControlItems)
else
begin
SetLength(FListKeys, 0);
FControlItems.Clear;
end;
end;
procedure TDBLookup.DatasetChange(Sender: TObject);