mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 21:59:16 +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
|
then begin
|
||||||
TAssemblerDlg(CurDialog).SetLocation(FDebugger, FCurrentLocation.Address);
|
TAssemblerDlg(CurDialog).SetLocation(FDebugger, FCurrentLocation.Address);
|
||||||
end;
|
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;
|
end;
|
||||||
if not DoDisableAutoSizing then
|
if not DoDisableAutoSizing then
|
||||||
CurDialog.EnableAutoSizing;
|
CurDialog.EnableAutoSizing;
|
||||||
|
Loading…
Reference in New Issue
Block a user