mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 18:20:30 +02:00
IDE, Debugger: Callstack, don't trigger updates for current frame, if already selected.
This commit is contained in:
parent
949b335b2e
commit
175ac42f2b
@ -714,13 +714,17 @@ end;
|
||||
procedure TCallStackDlg.actSetAsCurrentClick(Sender : TObject);
|
||||
var
|
||||
Entry: TIdeCallStackEntry;
|
||||
cs: TIdeCallStack;
|
||||
begin
|
||||
try
|
||||
DisableAllActions;
|
||||
Entry := GetCurrentEntry;
|
||||
if Entry = nil then Exit;
|
||||
|
||||
GetSelectedCallstack.ChangeCurrentIndex(Entry.Index);
|
||||
cs := GetSelectedCallstack;
|
||||
if Entry.Index = cs.NewCurrentIndex then Exit;
|
||||
|
||||
cs.ChangeCurrentIndex(Entry.Index);
|
||||
if GetSelectedSnapshot <> nil
|
||||
then CallStackMonitor.NotifyCurrent; // TODO: move to snapshot callstack object
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user