mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 20:59:42 +02:00
IDE: options: do not warn, if no fpc message file is set
git-svn-id: trunk@45317 -
This commit is contained in:
parent
ef1f0b14a6
commit
8a402f1c6b
@ -522,13 +522,15 @@ var
|
||||
begin
|
||||
if EnvironmentOptions.CompilerMessagesFilename=FOldCompilerFilename then exit(true);
|
||||
EnvironmentOptions.CompilerMessagesFilename:=CompilerTranslationFileComboBox.Text;
|
||||
NewMsgFile:=EnvironmentOptions.GetParsedCompilerMessagesFilename;
|
||||
if not FileExistsUTF8(NewMsgFile) then begin
|
||||
if IDEMessageDialog(lisCCOErrorCaption, Format(
|
||||
lisCompilerMessagesFileNotFound, [#13, NewMsgFile]), mtError, [mbCancel,
|
||||
mbIgnore])<>mrIgnore
|
||||
then
|
||||
exit(false);
|
||||
if EnvironmentOptions.CompilerMessagesFilename<>'' then begin
|
||||
NewMsgFile:=EnvironmentOptions.GetParsedCompilerMessagesFilename;
|
||||
if not FileExistsUTF8(NewMsgFile) then begin
|
||||
if IDEMessageDialog(lisCCOErrorCaption, Format(
|
||||
lisCompilerMessagesFileNotFound, [#13, NewMsgFile]), mtError, [mbCancel,
|
||||
mbIgnore])<>mrIgnore
|
||||
then
|
||||
exit(false);
|
||||
end;
|
||||
end;
|
||||
Result:=true;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user