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
@@ -69,7 +69,7 @@ bool ProFileReader::readProFile(const QString &fileName)
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
QString fn = QFileInfo(fileName).filePath();
|
||||
QString fn = QFileInfo(fileName).filePath();
|
||||
ProFile *pro = new ProFile(fn);
|
||||
if (!queryProFile(pro)) {
|
||||
delete pro;
|
||||
|
||||
@@ -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();
|
||||
else
|
||||
realDir = subDirVar;
|
||||
QFileInfo info(realDir);
|
||||
if (!info.isAbsolute())
|
||||
realDir = QString("%1/%2").arg(m_projectDir, realDir);
|
||||
realDir = m_projectDir + "/" + realDir;
|
||||
|
||||
#ifdef QTEXTENDED_QBUILD_SUPPORT
|
||||
// QBuild only uses project files named qbuild.pro, and subdirs are implied
|
||||
|
||||
Reference in New Issue
Block a user