forked from qt-creator/qt-creator
Fixes: Fix crash on windows while loading projects.pro.
Task: Reported by eskil on irc.
This commit is contained in:
committed by
dt
parent
f8def2e26b
commit
6bc0da69af
@@ -883,12 +883,12 @@ QStringList Qt4ProFileNode::subDirsPaths(ProFileReader *reader) const
|
|||||||
QString realFile;
|
QString realFile;
|
||||||
const QString subDirKey = subDirVar + QLatin1String(".subdir");
|
const QString subDirKey = subDirVar + QLatin1String(".subdir");
|
||||||
if (reader->contains(subDirKey))
|
if (reader->contains(subDirKey))
|
||||||
realDir = reader->value(subDirKey);
|
realDir = QFileInfo(reader->value(subDirKey)).filePath();
|
||||||
else
|
else
|
||||||
realDir = subDirVar;
|
realDir = subDirVar;
|
||||||
QFileInfo info(realDir);
|
QFileInfo info(realDir);
|
||||||
if (!info.isAbsolute())
|
if (!info.isAbsolute())
|
||||||
realDir = QString("%1/%2").arg(m_projectDir, realDir);
|
realDir = m_projectDir + "/" + realDir;
|
||||||
|
|
||||||
#ifdef QTEXTENDED_QBUILD_SUPPORT
|
#ifdef QTEXTENDED_QBUILD_SUPPORT
|
||||||
// QBuild only uses project files named qbuild.pro, and subdirs are implied
|
// QBuild only uses project files named qbuild.pro, and subdirs are implied
|
||||||
|
|||||||
Reference in New Issue
Block a user