|
@@ -456,7 +456,8 @@ begin
|
|
If (FDataset<>Nil) then
|
|
If (FDataset<>Nil) then
|
|
FDataset.RemoveFreeNotification(Self);
|
|
FDataset.RemoveFreeNotification(Self);
|
|
FDataset:=AValue;
|
|
FDataset:=AValue;
|
|
- FDataset.FreeNotification(Self);
|
|
|
|
|
|
+ if (FDataset<>Nil) then
|
|
|
|
+ FDataset.FreeNotification(Self);
|
|
UnbindFields;
|
|
UnbindFields;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|