lcl: cleanup TDBLookup.Notification

git-svn-id: trunk@37063 -
This commit is contained in:
blikblum 2012-04-28 13:07:24 +00:00
parent 7d52c74d6d
commit 6d94b077c7

View File

@ -175,9 +175,8 @@ end;
procedure TDBLookup.Notification(AComponent: TComponent; Operation: TOperation);
begin
inherited Notification(AComponent, Operation);
if (Operation=opRemove) then
if (AComponent = FListSource) then
FListSource:= nil;
if (Operation=opRemove) and (AComponent = FListSource) then
FListSource := nil;
end;
procedure TDBLookup.LinkGetBookMark;