mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 00:02:03 +02:00
ide: fix work of 'default' compiler options
git-svn-id: trunk@23356 -
This commit is contained in:
parent
bf67a1aaf6
commit
09f3891edd
@ -4461,9 +4461,6 @@ begin
|
||||
end;
|
||||
UpdateCaption;
|
||||
Project.DefineTemplates.AllChanged;
|
||||
// save to primary config directory
|
||||
if Project.CompilerOptions.UseAsDefault then
|
||||
Project.CompilerOptions.SaveCompilerOptions(False);
|
||||
end;
|
||||
|
||||
procedure TMainIDE.DoCompilerOptionsBeforeWrite(Sender: TObject);
|
||||
@ -4483,6 +4480,8 @@ begin
|
||||
UpdateHighlighters; // because of FPC/Delphi mode
|
||||
end;
|
||||
OldCompOpts.Free;
|
||||
if TBaseCompilerOptions(Sender).UseAsDefault then
|
||||
TBaseCompilerOptions(Sender).SaveCompilerOptions(False);
|
||||
end;
|
||||
|
||||
procedure TMainIDE.mnuEnvEditorOptionsClicked(Sender: TObject);
|
||||
|
Loading…
Reference in New Issue
Block a user