Explorar el Código

* Fix bug ID 37737: always set parentcomponent

michael hace 5 años
padre
commit
784e85a9dd
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);