Parcourir la source

* Flush when saving. Fixes issue #40938

Michaël Van Canneyt il y a 11 mois
Parent
commit
10d913624d
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      packages/fcl-json/src/jsonconf.pp

+ 1 - 0
packages/fcl-json/src/jsonconf.pp

@@ -187,6 +187,7 @@ begin
         S:=FJSON.AsJSON;
       if S>'' then
         F.WriteBuffer(S[1],Length(S));  
+      F.Flush;
     Finally
       F.Free;
     end;