forked from qt-creator/qt-creator
don't hang in .qmake.cache search when build dir does not exist
QDir::cdUp() is strange ...
This commit is contained in:
@@ -989,8 +989,7 @@ ProItem::ProItemReturn ProFileEvaluator::Private::visitBeginProFile(ProFile * pr
|
|||||||
qmake_cache = dir.filePath(QLatin1String(".qmake.cache"));
|
qmake_cache = dir.filePath(QLatin1String(".qmake.cache"));
|
||||||
if (QFile::exists(qmake_cache))
|
if (QFile::exists(qmake_cache))
|
||||||
break;
|
break;
|
||||||
dir.cdUp();
|
if (!dir.cdUp() || dir.isRoot()) {
|
||||||
if (dir.isRoot()) {
|
|
||||||
qmake_cache.clear();
|
qmake_cache.clear();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user