Commit bcf29992 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

eliminate duplicates from SUBDIRS

otherwise we may re-process subdirs multiple times in cumulative mode.
parent f26019be
......@@ -68,7 +68,9 @@ static int evaluate(const QString &fileName, const QString &in_pwd, const QStrin
return 2;
if (visitor.templateType() == ProFileEvaluator::TT_Subdirs) {
foreach (const QString &subDirVar, visitor.values(QLatin1String("SUBDIRS"))) {
QStringList subdirs = visitor.values(QLatin1String("SUBDIRS"));
foreach (const QString &subDirVar, subdirs) {
QString realDir;
const QString subDirKey = subDirVar + QLatin1String(".subdir");
const QString subDirFileKey = subDirVar + QLatin1String(".file");
Supports Markdown
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