aboutsummaryrefslogtreecommitdiffstats
path: root/src/ruleparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ruleparser.cpp')
-rw-r--r--src/ruleparser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp
index 2371f30..6d3e417 100644
--- a/src/ruleparser.cpp
+++ b/src/ruleparser.cpp
@@ -117,11 +117,13 @@ void Rules::load()
state = ReadingRepository;
repo = Repository(); // clear
repo.name = repoLine.cap(1);
+ repo.lineNumber = lineNumber;
} else if (isMatchRule) {
// match rule
state = ReadingMatch;
match = Match();
match.rx = QRegExp(matchLine.cap(1), Qt::CaseSensitive, QRegExp::RegExp2);
+ match.lineNumber = lineNumber;
} else {
qFatal("Malformed line in rules file: line %d: %s",
lineNumber, qPrintable(origLine));