diff --git a/NEWS.md b/NEWS.md index d8b5b0f3..f784e949 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,6 @@ Version 0.9.1 For Dev-C++ 7 Beta - enhancement: code completion suggestion for "__func__" variable + - fix: ide failed to start, if there are errors in the compiler set settings Version 0.9.0 For Dev-C++ 7 Beta - fix: control keys in the numpad doesn't work in the editor diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp index acc904c6..e8a2c1c4 100644 --- a/RedPandaIDE/settings.cpp +++ b/RedPandaIDE/settings.cpp @@ -2393,11 +2393,19 @@ void Settings::CompilerSets::loadSets() mDefaultIndex =mSettings->mSettings.value(SETTING_COMPILTER_SETS_DEFAULT_INDEX,-1).toInt(); int listSize = mSettings->mSettings.value(SETTING_COMPILTER_SETS_COUNT,0).toInt(); mSettings->mSettings.endGroup(); + bool loadError = false; for (int i=0;imSettings.endGroup(); + if (pSet->binDirs().isEmpty()) + return PCompilerSet(); pSet->setDirectories(pSet->binDirs()[0]); pSet->setDefines(); return pSet;