diff --git a/NEWS.md b/NEWS.md index 32d3668b..7b219363 100644 --- a/NEWS.md +++ b/NEWS.md @@ -24,6 +24,7 @@ Red Panda C++ Version 2.24 - change: New file created by file template is set as unmodified by default. - change: Remove option "clear all symbols when current editor is hidden". - 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 diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp index 51766c78..bd19e6ed 100644 --- a/RedPandaIDE/settings.cpp +++ b/RedPandaIDE/settings.cpp @@ -2254,7 +2254,7 @@ void Settings::CompilerSet::setProperties(const QString& binDir, const QString& #endif } } - } + } // Set compiler folder QDir tmpDir(binDir); @@ -2810,7 +2810,7 @@ bool Settings::CompilerSets::addSets(const QString &folder, const QString& c_pro } // Default, release profile PCompilerSet baseSet = addSet(folder,c_prog); - if (!baseSet) + if (!baseSet || baseSet->name().isEmpty()) return false; QString baseName = baseSet->name(); QString platformName;