Fixed: writing undefined keys always resulted in an empty value
This commit is contained in:
parent
7ad2a1a8d5
commit
00de61b4a8
@ -371,11 +371,10 @@ var
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
pDefine := FFactory.GetDefine(FSection, AName);
|
pDefine := FFactory.GetDefine(FSection, AName);
|
||||||
if Assigned(pDefine) then
|
|
||||||
begin
|
|
||||||
vValue := AValue;
|
vValue := AValue;
|
||||||
|
|
||||||
|
if Assigned(pDefine) then
|
||||||
pDefine.Action(saWrite, FSection, AName, vValue);
|
pDefine.Action(saWrite, FSection, AName, vValue);
|
||||||
end;
|
|
||||||
|
|
||||||
InternalWriteBool(AName, vValue);
|
InternalWriteBool(AName, vValue);
|
||||||
end;
|
end;
|
||||||
@ -387,11 +386,10 @@ var
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
pDefine := FFactory.GetDefine(FSection, AName);
|
pDefine := FFactory.GetDefine(FSection, AName);
|
||||||
if Assigned(pDefine) then
|
|
||||||
begin
|
|
||||||
vValue := AValue;
|
vValue := AValue;
|
||||||
|
|
||||||
|
if Assigned(pDefine) then
|
||||||
pDefine.Action(saWrite, FSection, AName, vValue);
|
pDefine.Action(saWrite, FSection, AName, vValue);
|
||||||
end;
|
|
||||||
|
|
||||||
InternalWriteFloat(AName, vValue);
|
InternalWriteFloat(AName, vValue);
|
||||||
end;
|
end;
|
||||||
@ -403,11 +401,10 @@ var
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
pDefine := FFactory.GetDefine(FSection, AName);
|
pDefine := FFactory.GetDefine(FSection, AName);
|
||||||
if Assigned(pDefine) then
|
|
||||||
begin
|
|
||||||
vValue := AValue;
|
vValue := AValue;
|
||||||
|
|
||||||
|
if Assigned(pDefine) then
|
||||||
pDefine.Action(saWrite, FSection, AName, vValue);
|
pDefine.Action(saWrite, FSection, AName, vValue);
|
||||||
end;
|
|
||||||
|
|
||||||
InternalWriteInteger(AName, vValue);
|
InternalWriteInteger(AName, vValue);
|
||||||
end;
|
end;
|
||||||
@ -419,11 +416,10 @@ var
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
pDefine := FFactory.GetDefine(FSection, AName);
|
pDefine := FFactory.GetDefine(FSection, AName);
|
||||||
if Assigned(pDefine) then
|
|
||||||
begin
|
|
||||||
vValue := AValue;
|
vValue := AValue;
|
||||||
|
|
||||||
|
if Assigned(pDefine) then
|
||||||
pDefine.Action(saWrite, FSection, AName, vValue);
|
pDefine.Action(saWrite, FSection, AName, vValue);
|
||||||
end;
|
|
||||||
|
|
||||||
InternalWriteInteger(AName, vValue);
|
InternalWriteInteger(AName, vValue);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user