IDE: load default compiler options only if file exists

git-svn-id: trunk@23194 -
This commit is contained in:
mattias 2009-12-19 09:42:45 +00:00
parent cf5309e627
commit fd5085297e

View File

@ -8902,7 +8902,8 @@ end;
procedure TMainIDE.DoLoadDefaultCompilerOptions(AProject: TProject);
begin
// load default compiler options
// load default compiler options if exists
if not FileExistsUTF8(AProject.CompilerOptions.GetXMLConfigPath) then exit;
if AProject.CompilerOptions.LoadCompilerOptions(false)<>mrOk then
DebugLn(['TMainIDE.DoLoadDefaultCompilerOptions failed']);
end;