Qt: Remove some bogus entries from Authors list

Some lines in Acknowledgements are mistakenly matching the regular
expression to capture authors and email addresses, resulting in
bogus authors entries.

Stop matching authors after we reach the Acknowledgements section.
This matches the structure of the AUTHORS-SHORT file and fixes the
bogus entries.
This commit is contained in:
João Valverde 2022-06-15 06:42:02 +01:00
parent 1272b62106
commit c5b47cb839
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ AStringListListModel(parent)
if (line.contains("Acknowledgements")) {
readAck = true;
continue;
} else {
}
else if (!readAck) {
QRegularExpressionMatch match = rx.match(line);
if (match.hasMatch())
appendRow(QStringList() << match.captured(1).trimmed() << match.captured(2).trimmed());