Add missing entry to changelog.

Add a missing entry and treat changelog file always as UTF-8.

Change-Id: I847c399ddf6d8aacf155864fbd9109121a761bc5
This commit is contained in:
Dominik Riebeling 2013-11-12 22:54:22 +01:00
parent 17a781d8b2
commit 0372a52e39
2 changed files with 3 additions and 0 deletions

View file

@ -16,5 +16,6 @@ Version 1.4
* Add support for Creative Zen X-Fi3 (G#419).
* Add Changelog window.
* Rework System Trace functionality.
* Add support for H300 v1.31K firmware.

View file

@ -24,6 +24,7 @@ Changelog::Changelog(QWidget *parent) : QDialog(parent)
{
ui.setupUi(this);
ui.browserChangelog->setOpenExternalLinks(true);
// FIXME: support translated changelog file (changelog.de.txt etc)
ui.browserChangelog->setHtml(parseChangelogFile(":/docs/changelog.txt"));
ui.browserChangelog->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor);
ui.checkBoxShowAlways->setChecked(RbSettings::value(RbSettings::ShowChangelog).toBool());
@ -44,6 +45,7 @@ QString Changelog::parseChangelogFile(QString filename)
QFile changelog(filename);
changelog.open(QIODevice::ReadOnly);
QTextStream c(&changelog);
c.setCodec(QTextCodec::codecForName("UTF-8"));
QString text;
while(!c.atEnd()) {
QString line = c.readLine();