Просмотр исходного кода

* Fix bug ID 37737: always set parentcomponent

michael 4 лет назад
Родитель
Сommit
784e85a9dd
1 измененных файлов с 2 добавлено и 2 удалено
  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);
 procedure TField.SetParentComponent(Value: TComponent);
 
 
 begin
 begin
-  if not (csLoading in ComponentState) then
-    DataSet := Value as TDataSet;
+  // if not (csLoading in ComponentState) then
+  DataSet := Value as TDataSet;
 end;
 end;
 
 
 procedure TField.SetSize(AValue: Integer);
 procedure TField.SetSize(AValue: Integer);