diff options
-rw-r--r-- | src/ruleparser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp index 6f98fbf..27ab0ca 100644 --- a/src/ruleparser.cpp +++ b/src/ruleparser.cpp @@ -129,8 +129,7 @@ void Rules::load(const QString &filename) QString includeFile = filename.left( index + 1) + includeLine.cap(1); load(includeFile); } else { - int index = variableLine.indexIn(line); - if ( index != -1 ) { + while( variableLine.indexIn(line) != -1 ) { if (!m_variables.contains(variableLine.cap(1))) qFatal("Undeclared variable: %s", qPrintable(variableLine.cap(1))); line = line.replace(variableLine, m_variables[variableLine.cap(1)]); |