Commit b0c92ff2 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

resolve symlinks in project files' parent directories

this is needed for following relative includes from files with symlinks
in their path (e.g., the default qmakespec pointing to
qws/linux-sh-g++).

Task-number: QTCREATORBUG-1513
parent 7e8688af
......@@ -340,7 +340,8 @@ ProFile::ProFile(const QString &fileName)
m_ok(true)
{
if (!fileName.startsWith(QLatin1Char('(')))
m_directoryName = fileName.left(fileName.lastIndexOf(QLatin1Char('/')));
m_directoryName = QFileInfo( // qmake sickness: canonicalize only the directory!
fileName.left(fileName.lastIndexOf(QLatin1Char('/')))).canonicalFilePath();
}
ProFile::~ProFile()
......
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