diff options
author | John Fultz <jfultz@wolfram.com> | 2019-05-06 11:44:15 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2019-05-06 11:44:15 -0500 |
commit | a6a4a4443b403e2785da06d53e02237a35324dd7 (patch) | |
tree | ae15dd0db75a3db6944c57b65e0d23e494c9ba83 /quacker | |
parent | 27c05b0fdf676294518e4f97d992ce8f555f3b31 (diff) |
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.
Diffstat (limited to 'quacker')
-rw-r--r-- | quacker/quacker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 += "<li>" + line + "</li>"; + // 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 += "<li>" + line + "</li>"; } line = strm.readLine(); } |