mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +02:00
ideconfig: do not wrn if no secondary config file found
This commit is contained in:
parent
c0a475897d
commit
8d5abae84f
@ -321,7 +321,9 @@ begin
|
||||
debugln(['WARNING: unable to create primary config directory "',GetPrimaryConfigPath,'"']);
|
||||
exit;
|
||||
end;
|
||||
if not CopyFile(SecondaryFilename,PrimaryFilename) then begin
|
||||
if FileExists(SecondaryFilename)
|
||||
and not CopyFile(SecondaryFilename,PrimaryFilename) then
|
||||
begin
|
||||
debugln(['WARNING: unable to copy config "',SecondaryFilename,'" to "',PrimaryFilename,'"']);
|
||||
exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user