Skip to content

Commit 205860b

Browse files
committed
when create the project, set its compiler set type
1 parent 4f2b876 commit 205860b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

RedPandaIDE/project.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,9 +631,7 @@ bool Project::assignTemplate(const std::shared_ptr<ProjectTemplate> aTemplate)
631631

632632
mOptions = aTemplate->options();
633633
mOptions.compilerSet = pSettings->compilerSets().defaultIndex();
634-
if (pSettings->compilerSets().defaultSet()) {
635-
mOptions.compilerOptions = pSettings->compilerSets().defaultSet()->iniOptions();
636-
}
634+
updateCompilerSetType();
637635
mOptions.icon = aTemplate->icon();
638636

639637
// Copy icon to project directory

RedPandaIDE/projectoptions.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ ProjectOptions::ProjectOptions()
3333
includeVersionInfo = false;
3434
supportXPThemes = false;
3535
compilerSet = 0;
36+
compilerSetType = 0;
3637
staticLink = true;
3738
addCharset = true;
3839
}

0 commit comments

Comments
 (0)