mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 07:29:30 +02:00
IDE: enable (debug-)Stop button while building.
git-svn-id: trunk@63530 -
This commit is contained in:
parent
4fd90b6fad
commit
99302de6f6
@ -2113,8 +2113,9 @@ begin
|
||||
// Run to cursor
|
||||
itmRunMenuRunToCursor.Enabled := CanRun and (dcRunTo in AvailCommands);
|
||||
// Stop
|
||||
itmRunMenuStop.Enabled := CanRun and (MainIDE.ToolStatus = itDebugger) and
|
||||
(CurState in [dsPause, dsInternalPause, dsInit, dsRun, dsError]);
|
||||
itmRunMenuStop.Enabled := (CanRun and (MainIDE.ToolStatus = itDebugger) and
|
||||
(CurState in [dsPause, dsInternalPause, dsInit, dsRun, dsError])) or
|
||||
(MainIDE.ToolStatus = itBuilder);
|
||||
|
||||
//Attach / Detach
|
||||
itmRunMenuAttach.Enabled := DebuggerIsValid and (dcAttach in AvailCommands);
|
||||
|
@ -4647,7 +4647,10 @@ end;
|
||||
|
||||
procedure TMainIDE.mnuStopProjectClicked(Sender: TObject);
|
||||
begin
|
||||
DebugBoss.DoStopProject;
|
||||
if (MainIDE.ToolStatus = itBuilder) then
|
||||
mnuAbortBuildProjectClicked(Sender)
|
||||
else
|
||||
DebugBoss.DoStopProject;
|
||||
end;
|
||||
|
||||
procedure TMainIDE.mnuAttachDebuggerClicked(Sender: TObject);
|
||||
|
Loading…
Reference in New Issue
Block a user