Browse Source

* TField.CanModify should return false if the dataset is inactive

git-svn-id: trunk@12741 -
joost 16 years ago
parent
commit
a35edda5de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/base/fields.inc

+ 1 - 1
packages/fcl-db/src/base/fields.inc

@@ -530,7 +530,7 @@ begin
     Result := FieldKind in [fkData, fkInternalCalc];
     Result := FieldKind in [fkData, fkInternalCalc];
     if Result then
     if Result then
       begin
       begin
-      Result:=Assigned(DataSet);
+      Result:=Assigned(DataSet) and Dataset.Active;
       If Result then
       If Result then
         Result:= DataSet.CanModify;
         Result:= DataSet.CanModify;
       end;
       end;