IDE, Debugger: Allow "Add Watch" as button on the editor toolbar

git-svn-id: trunk@63653 -
This commit is contained in:
martin 2020-07-25 10:21:55 +00:00
parent 5da70017ac
commit 5ce498b490

View File

@ -1135,7 +1135,7 @@ begin
WatchVar := SE.Selection
else
WatchVar := SE.GetOperandAtCurrentCaret;
if (WatchVar <> '') and SE.EditorComponent.Focused then
if (WatchVar <> '') and (SE.SourceNotebook.Active or SE.EditorComponent.Focused) then
begin
Watches.CurrentWatches.BeginUpdate;
try