logic: added default header and source extensions to ProjectSettings

Loading source from the menu using Project->New resulted in nothing being loaded because no extensions are set.
This commit is contained in:
Eberhard Graether
2015-03-24 20:53:02 +01:00
parent be123a33b4
commit 0d2a76c2eb
+3 -1
View File
@@ -34,11 +34,13 @@ bool ProjectSettings::setSourcePaths(const std::vector<std::string>& sourcePaths
std::vector<std::string> ProjectSettings::getHeaderExtensions() const
{
std::vector<std::string> defaultValues;
defaultValues.push_back(".h");
return getValues("source/Extensions/HeaderExtensions", defaultValues);
}
std::vector<std::string> ProjectSettings::getSourceExtensions() const
{
std::vector<std::string> defaultValues;
defaultValues.push_back(".cpp");
return getValues("source/Extensions/SourceExtensions", defaultValues);
}
}