IDE: options: do not warn, if no fpc message file is set

git-svn-id: trunk@45317 -
This commit is contained in:
mattias 2014-06-03 10:50:22 +00:00
parent ef1f0b14a6
commit 8a402f1c6b

View File

@ -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;