Debugger: Fix possible crash on start of IDE

git-svn-id: trunk@28182 -
This commit is contained in:
martin 2010-11-11 16:33:31 +00:00
parent cbbf6dfa12
commit e0ad0b5556

View File

@ -1874,6 +1874,8 @@ var
TheDialog: TIDEInspectDlg;
begin
TheDialog := TIDEInspectDlg(FDialogs[ddtInspect]);
if (SourceEditorManager.GetActiveSE = nil) then
exit;
if SourceEditorManager.GetActiveSE.SelectionAvailable then
TheDialog.Execute(SourceEditorManager.GetActiveSE.Selection)
else