- fix: Wrong compiler settings if xcode is not installed in mac os.

This commit is contained in:
Roy Qu 2023-08-11 16:26:03 +08:00
parent aa03dfc01d
commit 12f4b3ee9c
2 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ Red Panda C++ Version 2.24
- change: New file created by file template is set as unmodified by default. - change: New file created by file template is set as unmodified by default.
- change: Remove option "clear all symbols when current editor is hidden". - change: Remove option "clear all symbols when current editor is hidden".
- fix: When opening multiple files, only the active file should be parsed. - fix: When opening multiple files, only the active file should be parsed.
- fix: Wrong compiler settings if xcode is not installed in mac os.
Red Panda C++ Version 2.23 Red Panda C++ Version 2.23

View File

@ -2254,7 +2254,7 @@ void Settings::CompilerSet::setProperties(const QString& binDir, const QString&
#endif #endif
} }
} }
} }
// Set compiler folder // Set compiler folder
QDir tmpDir(binDir); QDir tmpDir(binDir);
@ -2810,7 +2810,7 @@ bool Settings::CompilerSets::addSets(const QString &folder, const QString& c_pro
} }
// Default, release profile // Default, release profile
PCompilerSet baseSet = addSet(folder,c_prog); PCompilerSet baseSet = addSet(folder,c_prog);
if (!baseSet) if (!baseSet || baseSet->name().isEmpty())
return false; return false;
QString baseName = baseSet->name(); QString baseName = baseSet->name();
QString platformName; QString platformName;