فهرست منبع

* Fix bug ID 37737: always set parentcomponent

michael 5 سال پیش
والد
کامیت
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);
 
 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);