Commit e43e988a authored by Karl Ove Hufthammer's avatar Karl Ove Hufthammer Committed by Boudewijn Rempt

Remove trailing comma and space in list of backers

The list of backers shown in the ‘About’ dialogue ended with
‘and xxx anonymous donors, .’. This fixes the trailing ‘, ’.
It also avoids a loop when adding the donor names.
parent ab5621f0
......@@ -103,11 +103,10 @@ KisAboutApplication::KisAboutApplication(QWidget *parent)
QFile fileBackers(":/backers.txt");
Q_ASSERT(fileBackers.exists());
fileBackers.open(QIODevice::ReadOnly);
Q_FOREACH (const QByteArray &backer, fileBackers.readAll().split('\n')) {
backers.append(QString::fromUtf8(backer));
backers.append(", ");
}
fileBackers.open(QIODevice::ReadOnly | QIODevice::Text);
QTextStream backersText(&fileBackers);
backersText.setCodec("UTF-8");
backers.append(backersText.readAll().replace("\n", ", "));
backers.chop(2);
backers.append(i18n(".</p><p><i>Thanks! You were all <b>awesome</b>!</i></p></body></html>"));
lblKickstarter->setText(backers);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment