IDE: prevent crash when pressing F5 while source editor is closed.

git-svn-id: trunk@46464 -
This commit is contained in:
juha 2014-10-07 20:52:58 +00:00
parent 4c6fbfdc2d
commit ba93502046

View File

@ -3333,8 +3333,12 @@ begin
ecToggleObjectInsp: mnuViewInspectorClicked(Self);
ecToggleSearchResults: mnuViewSearchResultsClick(Self);
ecAboutLazarus: MainIDEBar.itmHelpAboutLazarus.OnClick(Self);
ecToggleBreakPoint: SourceEditorManager.ActiveSourceWindow.ToggleBreakpointClicked(Self);
ecRemoveBreakPoint: SourceEditorManager.ActiveSourceWindow.DeleteBreakpointClicked(Self);
ecToggleBreakPoint:
if Assigned(SourceEditorManager.ActiveSourceWindow) then
SourceEditorManager.ActiveSourceWindow.ToggleBreakpointClicked(Self);
ecRemoveBreakPoint:
if Assigned(SourceEditorManager.ActiveSourceWindow) then
SourceEditorManager.ActiveSourceWindow.DeleteBreakpointClicked(Self);
ecProcedureList: mnuSearchProcedureList(self);
ecInsertGUID: mnuSourceInsertGUID(self);
ecInsertFilename: mnuSourceInsertFilename(self);