DBG: Fix updating Inspect dialog, if triggered via source-editor (pop-up menu)

git-svn-id: trunk@39290 -
This commit is contained in:
martin 2012-11-16 15:43:16 +00:00
parent 19c0f84bd2
commit a99a932801

View File

@ -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;