mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +02:00
IDE: Update project's DefineTemplates after closing project compiler option.
git-svn-id: trunk@64712 -
This commit is contained in:
parent
09d883d029
commit
14ed68a260
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user