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
|
||||
pDefine := FFactory.GetDefine(FSection, AName);
|
||||
if Assigned(pDefine) then
|
||||
begin
|
||||
vValue := AValue;
|
||||
|
||||
if Assigned(pDefine) then
|
||||
pDefine.Action(saWrite, FSection, AName, vValue);
|
||||
end;
|
||||
|
||||
InternalWriteBool(AName, vValue);
|
||||
end;
|
||||
@ -387,11 +386,10 @@ var
|
||||
|
||||
begin
|
||||
pDefine := FFactory.GetDefine(FSection, AName);
|
||||
if Assigned(pDefine) then
|
||||
begin
|
||||
vValue := AValue;
|
||||
|
||||
if Assigned(pDefine) then
|
||||
pDefine.Action(saWrite, FSection, AName, vValue);
|
||||
end;
|
||||
|
||||
InternalWriteFloat(AName, vValue);
|
||||
end;
|
||||
@ -403,11 +401,10 @@ var
|
||||
|
||||
begin
|
||||
pDefine := FFactory.GetDefine(FSection, AName);
|
||||
if Assigned(pDefine) then
|
||||
begin
|
||||
vValue := AValue;
|
||||
|
||||
if Assigned(pDefine) then
|
||||
pDefine.Action(saWrite, FSection, AName, vValue);
|
||||
end;
|
||||
|
||||
InternalWriteInteger(AName, vValue);
|
||||
end;
|
||||
@ -419,11 +416,10 @@ var
|
||||
|
||||
begin
|
||||
pDefine := FFactory.GetDefine(FSection, AName);
|
||||
if Assigned(pDefine) then
|
||||
begin
|
||||
vValue := AValue;
|
||||
|
||||
if Assigned(pDefine) then
|
||||
pDefine.Action(saWrite, FSection, AName, vValue);
|
||||
end;
|
||||
|
||||
InternalWriteInteger(AName, vValue);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user