Merged revision(s) 48426 #bdb8739939 from trunk:

IDE: Fix crash in procedurelist when no file is open in editor. Issue #0027694.
........

git-svn-id: branches/fixes_1_4@48491 -
This commit is contained in:
maxim 2015-03-24 21:42:22 +00:00
parent 18b5fcfe2f
commit b0a5fd86ea

View File

@ -542,8 +542,13 @@ end;
procedure TProcedureListForm.FormCreate(Sender: TObject);
begin
if SourceEditorManagerIntf.ActiveEditor = nil then
begin
//SetupGUI makes the dialog look as it should, and is clears the listview
//thus preventing a crash when clicking on the LV
SetupGUI;
Exit; //==>
end;
FMainFilename := SourceEditorManagerIntf.ActiveEditor.Filename;
Caption := Caption + ExtractFileName(FMainFilename);
SetupGUI;