Răsfoiți Sursa

* Fix bug ID 37737: always set parentcomponent

michael 5 ani în urmă
părinte
comite
784e85a9dd
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      packages/fcl-db/db.pas

+ 2 - 2
packages/fcl-db/db.pas

@@ -5829,8 +5829,8 @@ end;
 procedure TField.SetParentComponent(Value: TComponent);
 
 begin
-  if not (csLoading in ComponentState) then
-    DataSet := Value as TDataSet;
+  // if not (csLoading in ComponentState) then
+  DataSet := Value as TDataSet;
 end;
 
 procedure TField.SetSize(AValue: Integer);