when create the project, set its compiler set type

This commit is contained in:
royqh1979 2021-10-25 22:06:52 +08:00
parent 4f2b87662f
commit 205860b81f
2 changed files with 2 additions and 3 deletions

View File

@ -631,9 +631,7 @@ bool Project::assignTemplate(const std::shared_ptr<ProjectTemplate> aTemplate)
mOptions = aTemplate->options();
mOptions.compilerSet = pSettings->compilerSets().defaultIndex();
if (pSettings->compilerSets().defaultSet()) {
mOptions.compilerOptions = pSettings->compilerSets().defaultSet()->iniOptions();
}
updateCompilerSetType();
mOptions.icon = aTemplate->icon();
// Copy icon to project directory

View File

@ -33,6 +33,7 @@ ProjectOptions::ProjectOptions()
includeVersionInfo = false;
supportXPThemes = false;
compilerSet = 0;
compilerSetType = 0;
staticLink = true;
addCharset = true;
}