Merged revision(s) 61504 #5746da87b0 from trunk:

IDE: DoRunProject: reset ToolStatus only for errors on handlers, bug #35764
........

git-svn-id: branches/fixes_2_0@62105 -
This commit is contained in:
maxim 2019-10-21 22:16:34 +00:00
parent 3b06c8f7ea
commit 254fc8b15d

View File

@ -7183,15 +7183,16 @@ begin
Result:=mrCancel; Result:=mrCancel;
Handled:=false; Handled:=false;
Result := DoCallRunDebug(Handled); Result := DoCallRunDebug(Handled);
if Handled or (Result<>mrOk) then if Handled then
exit; exit;
Result := mrCancel;
Result := DebugBoss.StartDebugging;
finally finally
if Result<>mrOk then if Result<>mrOk then
ToolStatus:=itNone; ToolStatus:=itNone;
end; end;
if Result<>mrOk then
exit;
Result := DebugBoss.StartDebugging;
DebugLn('Hint: (lazarus) [TMainIDE.DoRunProject] END'); DebugLn('Hint: (lazarus) [TMainIDE.DoRunProject] END');
end; end;