Commit 6bc0da69 authored by's avatar Committed by dt

Fixes: Fix crash on windows while loading

Task:     Reported by eskil on irc.
parent f8def2e2
......@@ -883,12 +883,12 @@ QStringList Qt4ProFileNode::subDirsPaths(ProFileReader *reader) const
QString realFile;
const QString subDirKey = subDirVar + QLatin1String(".subdir");
if (reader->contains(subDirKey))
realDir = reader->value(subDirKey);
realDir = QFileInfo(reader->value(subDirKey)).filePath();
realDir = subDirVar;
QFileInfo info(realDir);
if (!info.isAbsolute())
realDir = QString("%1/%2").arg(m_projectDir, realDir);
realDir = m_projectDir + "/" + realDir;
// QBuild only uses project files named, and subdirs are implied
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