From 12f4b3ee9cd0626c861a6219bb7b655844ccab7b Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 11 Aug 2023 16:26:03 +0800 Subject: [PATCH] - fix: Wrong compiler settings if xcode is not installed in mac os. --- NEWS.md | 1 + RedPandaIDE/settings.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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;