Commit 1b0fbbff authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

don't hang in .qmake.cache search when build dir does not exist

QDir::cdUp() is strange ...
parent d24cd037
......@@ -989,8 +989,7 @@ ProItem::ProItemReturn ProFileEvaluator::Private::visitBeginProFile(ProFile * pr
qmake_cache = dir.filePath(QLatin1String(".qmake.cache"));
if (QFile::exists(qmake_cache))
break;
dir.cdUp();
if (dir.isRoot()) {
if (!dir.cdUp() || dir.isRoot()) {
qmake_cache.clear();
break;
}
......
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