IDE: Update project's DefineTemplates after closing project compiler option.

git-svn-id: trunk@64712 -
This commit is contained in:
juha 2021-03-01 15:39:00 +00:00
parent 09d883d029
commit 14ed68a260
2 changed files with 7 additions and 6 deletions

View File

@ -4425,6 +4425,8 @@ begin
if not Project1.OtherDefines.Equals(Project1.CompilerOptions.OtherDefines) then
Project1.OtherDefines.Assign(Project1.CompilerOptions.OtherDefines);
Project1.Modified:=True;
Project1.DefineTemplates.AllChanged(false);
IncreaseCompilerParseStamp;
MainBuildBoss.SetBuildTargetProject1(false);
MainIDE.UpdateCaption;
end;
@ -5206,9 +5208,6 @@ begin
UpdateCaption;
if Assigned(ProjInspector) then
ProjInspector.UpdateTitle;
Project1.DefineTemplates.AllChanged(false);
IncreaseCompilerParseStamp;
if Project1.UseAsDefault then
begin
// save as default

View File

@ -68,9 +68,10 @@ uses
// IDEIntf
IDEHelpIntf, IDECommands, IDEDialogs, IDEImagesIntf, LazIDEIntf, ToolBarIntf,
// IDE
LazarusIDEStrConsts, MainBase, IDEProcs, DialogProcs, IDEOptionDefs, Project, InputHistory,
EnvironmentOpts, AddToProjectDlg, AddPkgDependencyDlg, AddFPMakeDependencyDlg,
ProjPackChecks, ProjPackEditing, ProjPackFilePropGui, PackageDefs, PackageSystem, BuildManager;
LazarusIDEStrConsts, MainBase, IDEProcs, DialogProcs, IDEOptionDefs, Project,
InputHistory, TransferMacros, EnvironmentOpts, BuildManager,
ProjPackChecks, ProjPackEditing, ProjPackFilePropGui, PackageDefs, PackageSystem,
AddToProjectDlg, AddPkgDependencyDlg, AddFPMakeDependencyDlg;
type
TOnAddUnitToProject =
@ -1748,6 +1749,7 @@ begin
Project1.ActiveBuildMode := NewMode;
Project1.DefineTemplates.AllChanged(false);
IncreaseCompilerParseStamp;
MainBuildBoss.SetBuildTargetProject1(false);
MainIDE.UpdateCaption;
if Assigned(ProjInspector) then