mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 17:29:31 +02:00
IDE: fixed saving usage options with correct PathDelim
git-svn-id: trunk@18768 -
This commit is contained in:
parent
edd4e307c9
commit
11b999a54c
@ -2939,13 +2939,19 @@ end;
|
||||
|
||||
procedure TAdditionalCompilerOptions.SaveToXMLConfig(XMLConfig: TXMLConfig;
|
||||
const Path: string; UsePathDelim: TPathDelimSwitch);
|
||||
|
||||
function f(const AFilename: string): string;
|
||||
begin
|
||||
Result:=SwitchPathDelims(AFilename,UsePathDelim);
|
||||
end;
|
||||
|
||||
begin
|
||||
XMLConfig.SetDeleteValue(Path+'CustomOptions/Value',fCustomOptions,'');
|
||||
XMLConfig.SetDeleteValue(Path+'IncludePath/Value',FIncludePath,'');
|
||||
XMLConfig.SetDeleteValue(Path+'LibraryPath/Value',FLibraryPath,'');
|
||||
XMLConfig.SetDeleteValue(Path+'LinkerOptions/Value',fLinkerOptions,'');
|
||||
XMLConfig.SetDeleteValue(Path+'ObjectPath/Value',FObjectPath,'');
|
||||
XMLConfig.SetDeleteValue(Path+'UnitPath/Value',FUnitPath,'');
|
||||
XMLConfig.SetDeleteValue(Path+'CustomOptions/Value',f(fCustomOptions),'');
|
||||
XMLConfig.SetDeleteValue(Path+'IncludePath/Value',f(FIncludePath),'');
|
||||
XMLConfig.SetDeleteValue(Path+'LibraryPath/Value',f(FLibraryPath),'');
|
||||
XMLConfig.SetDeleteValue(Path+'LinkerOptions/Value',f(fLinkerOptions),'');
|
||||
XMLConfig.SetDeleteValue(Path+'ObjectPath/Value',f(FObjectPath),'');
|
||||
XMLConfig.SetDeleteValue(Path+'UnitPath/Value',f(FUnitPath),'');
|
||||
FConditionals.SaveToXMLConfig(XMLConfig,Path+'Conditionals/',UsePathDelim);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user