From c5b47cb8399bba055bb32a4083961557e91ba180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Wed, 15 Jun 2022 06:42:02 +0100 Subject: [PATCH] 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. --- ui/qt/about_dialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/qt/about_dialog.cpp b/ui/qt/about_dialog.cpp index cc736dbf23..fca731e742 100644 --- a/ui/qt/about_dialog.cpp +++ b/ui/qt/about_dialog.cpp @@ -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());