forked from qt-creator/qt-creator
Fixes: potential speed improvement
RevBy: dt
Details: create QDir objects ony when needed
This commit is contained in:
@@ -1841,7 +1841,8 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
|
||||
dirstr = file.left(slsh+1);
|
||||
file = file.right(file.length() - slsh - 1);
|
||||
}
|
||||
cond = QDir(dirstr).entryList(QStringList(file)).count();
|
||||
if (file.contains('*') || file.contains('?'))
|
||||
cond = QDir(dirstr).entryList(QStringList(file)).count();
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user