mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:29:25 +02:00
DBG: Fix updating Inspect dialog, if triggered via source-editor (pop-up menu)
git-svn-id: trunk@39290 -
This commit is contained in:
parent
19c0f84bd2
commit
a99a932801
@ -1410,6 +1410,13 @@ begin
|
||||
then begin
|
||||
TAssemblerDlg(CurDialog).SetLocation(FDebugger, FCurrentLocation.Address);
|
||||
end;
|
||||
if (CurDialog is TIDEInspectDlg) and (SourceEditorManager.GetActiveSE <> nil)
|
||||
then begin
|
||||
if SourceEditorManager.GetActiveSE.SelectionAvailable then
|
||||
TIDEInspectDlg(CurDialog).Execute(SourceEditorManager.GetActiveSE.Selection)
|
||||
else
|
||||
TIDEInspectDlg(CurDialog).Execute(SourceEditorManager.GetActiveSE.GetOperandAtCurrentCaret);
|
||||
end;
|
||||
end;
|
||||
if not DoDisableAutoSizing then
|
||||
CurDialog.EnableAutoSizing;
|
||||
|
Loading…
Reference in New Issue
Block a user