diff --git a/ide/project.pp b/ide/project.pp index 44ef4bf3cb..278c422dec 100644 --- a/ide/project.pp +++ b/ide/project.pp @@ -2739,8 +2739,9 @@ function TProject.WriteProject(ProjectWriteFlags: TProjectWriteFlags; CurMode.MacroValues.SaveToXMLConfig(XMLConfig,SubPath+'MacroValues/'); CurMode.CompilerOptions.SaveToXMLConfig(XMLConfig,SubPath+'CompilerOptions/'); end; - if SaveSession then + if SaveSession and (not CurMode.InSession) then begin + // save which matrix options are enabled in this build mode end; end;