From a6a4a4443b403e2785da06d53e02237a35324dd7 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Mon, 6 May 2019 11:44:15 -0500 Subject: About box fixes. Re-sort copyrights so newer ones show up first. Exclude copyright.txt lines from about box if they don't have an actual copyright. --- quacker/quacker.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'quacker/quacker.cpp') diff --git a/quacker/quacker.cpp b/quacker/quacker.cpp index 4498900..6a2a34a 100644 --- a/quacker/quacker.cpp +++ b/quacker/quacker.cpp @@ -2170,7 +2170,9 @@ void TopLevel::about() line = line.mid(startPos + 1); int endPos = line.indexOf(':'); line = line.mid(0, endPos); - aboutText += "
  • " + line + "
  • "; + // Only include lines with a copyright (the word or the symbol) in them + if (line.indexOf("copyright", 0, Qt::CaseInsensitive) != -1 || line.indexOf(QChar(0xA9)) != -1) + aboutText += "
  • " + line + "
  • "; } line = strm.readLine(); } -- cgit v1.2.3