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

@ -7180,18 +7180,19 @@ begin
debugln('Hint: (lazarus) [TMainIDE.DoRunProject] Debugger=',EnvironmentOptions.DebuggerConfig.DebuggerClass);
try
Result := mrCancel;
Result:=mrCancel;
Handled:=false;
Result := DoCallRunDebug(Handled);
if Handled or (Result<>mrOk) then
if Handled then
exit;
Result := mrCancel;
Result := DebugBoss.StartDebugging;
finally
if Result<>mrOk then
ToolStatus:=itNone;
end;
if Result<>mrOk then
exit;
Result := DebugBoss.StartDebugging;
DebugLn('Hint: (lazarus) [TMainIDE.DoRunProject] END');
end;