Skip to content
Snippets Groups Projects
Commit b3c2622f authored by hjk's avatar hjk
Browse files

Fixes: potential speed improvement

    RevBy:    dt
    Details:  create QDir objects ony when needed
parent 63a5f15f
No related branches found
No related tags found
No related merge requests found
...@@ -1841,7 +1841,8 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct ...@@ -1841,7 +1841,8 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
dirstr = file.left(slsh+1); dirstr = file.left(slsh+1);
file = file.right(file.length() - 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; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment