Commit 5d11453c authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fixed relative include paths specified for the generic project

We forgot to convert them to absolute. Also removed two calls to
removeDuplicates, since the convertToAbsoluteFiles already does that.

Reviewed-by: Roberto Raggi
parent fa3ea57e
......@@ -171,14 +171,11 @@ static QStringList readLines(const QString &absoluteFileName)
void GenericProject::parseProject(RefreshOptions options)
{
if (options & Files) {
if (options & Files)
m_files = convertToAbsoluteFiles(readLines(filesFileName()));
m_files.removeDuplicates();
}
if (options & Configuration) {
m_projectIncludePaths = readLines(includesFileName());
m_projectIncludePaths.removeDuplicates();
m_projectIncludePaths = convertToAbsoluteFiles(readLines(includesFileName()));
QSettings projectInfo(m_fileName, QSettings::IniFormat);
m_generated = convertToAbsoluteFiles(projectInfo.value(QLatin1String("generated")).toStringList());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment