Fixes: potential speed improvement

RevBy:    dt
    Details:  create QDir objects ony when needed
This commit is contained in:
hjk
2009-02-03 15:09:23 +01:00
parent 63a5f15f9d
commit b3c2622fcf

View File

@@ -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;
}