ui: Fixed path checking in project setup wizzard

This commit is contained in:
Eberhard Graether
2016-04-21 16:11:00 +02:00
parent b5bcabb494
commit 526f966356
7 changed files with 35 additions and 29 deletions
+5 -5
View File
@@ -225,24 +225,24 @@ void ProjectSettings::setProjectName(const std::string& name)
m_projectName = name;
}
std::string ProjectSettings::getProjectFileLocation() const
FilePath ProjectSettings::getProjectFileLocation() const
{
if (m_projectFileLocation.size())
if (!m_projectFileLocation.empty())
{
return m_projectFileLocation;
}
return getFilePath().parentDirectory().str();
return getFilePath().parentDirectory();
}
void ProjectSettings::setProjectFileLocation(const std::string& location)
void ProjectSettings::setProjectFileLocation(const FilePath& location)
{
m_projectFileLocation = location;
}
void ProjectSettings::makePathsAbsolute(std::vector<FilePath>& paths) const
{
FilePath basePath = getFilePath().parentDirectory();
FilePath basePath = getProjectFileLocation();
for (size_t i = 0; i < paths.size(); i++)
{
if (!paths[i].isAbsolute())