mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-23 09:20:12 +01:00
ide: options dialog: fix crash on loading compiler configuration (issue #0015739)
git-svn-id: trunk@23974 -
This commit is contained in:
parent
617f9118af
commit
393b9de9d9
@ -160,9 +160,11 @@ end;
|
||||
|
||||
procedure TCompilerPathOptionsFrame.DoLoadSave(Sender: TObject);
|
||||
var
|
||||
OldOptions: TBaseCompilerOptions;
|
||||
Options: TBaseCompilerOptions;
|
||||
ImportExportResult: TImportExportOptionsResult;
|
||||
begin
|
||||
OldOptions := FCompilerOpts;
|
||||
Options := TBaseCompilerOptionsClass(FCompilerOpts.ClassType).Create(FCompilerOpts.Owner);
|
||||
try
|
||||
DoSaveSettings(Options);
|
||||
@ -172,6 +174,7 @@ begin
|
||||
if Assigned(OnLoadIDEOptions) then
|
||||
OnLoadIDEOptions(Self, Options);
|
||||
end;
|
||||
Options := OldOptions;
|
||||
finally
|
||||
Options.Free;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user