IDE: messages window: fixed adding $warn off

git-svn-id: trunk@57765 -
This commit is contained in:
mattias 2018-05-02 06:06:16 +00:00
parent 9fae8f17bf
commit 71c85ca2f3

View File

@ -346,7 +346,7 @@ begin
LazarusIDE.OpenEditorsOnCodeToolChange:=true; LazarusIDE.OpenEditorsOnCodeToolChange:=true;
try try
Comment:=' : '+TIDEFPCParser.GetFPCMsgPattern(Msg); Comment:=' : '+TIDEFPCParser.GetFPCMsgPattern(Msg);
if not CodeToolBoss.AddUnitWarnDirective(Code,IntToStr(MsgID),Comment,true) then if not CodeToolBoss.AddUnitWarnDirective(Code,IntToStr(MsgID),Comment,false) then
begin begin
DebugLn(['TQuickFix_HideWithCompilerDirective CodeToolBoss.AddUnitWarnDirective failed']); DebugLn(['TQuickFix_HideWithCompilerDirective CodeToolBoss.AddUnitWarnDirective failed']);
LazarusIDE.DoJumpToCodeToolBossError; LazarusIDE.DoJumpToCodeToolBossError;