mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 08:20:21 +02:00
IDE, Debugger: Allow "Add Watch" as button on the editor toolbar
git-svn-id: trunk@63653 -
This commit is contained in:
parent
5da70017ac
commit
5ce498b490
@ -1135,7 +1135,7 @@ begin
|
|||||||
WatchVar := SE.Selection
|
WatchVar := SE.Selection
|
||||||
else
|
else
|
||||||
WatchVar := SE.GetOperandAtCurrentCaret;
|
WatchVar := SE.GetOperandAtCurrentCaret;
|
||||||
if (WatchVar <> '') and SE.EditorComponent.Focused then
|
if (WatchVar <> '') and (SE.SourceNotebook.Active or SE.EditorComponent.Focused) then
|
||||||
begin
|
begin
|
||||||
Watches.CurrentWatches.BeginUpdate;
|
Watches.CurrentWatches.BeginUpdate;
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user