From 5ce498b4902fde2fc9bf353b32199c4468527dc0 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 25 Jul 2020 10:21:55 +0000 Subject: [PATCH] IDE, Debugger: Allow "Add Watch" as button on the editor toolbar git-svn-id: trunk@63653 - --- ide/debugmanager.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide/debugmanager.pas b/ide/debugmanager.pas index 1549b384d4..5b5ef36f79 100644 --- a/ide/debugmanager.pas +++ b/ide/debugmanager.pas @@ -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