diff options
Diffstat (limited to 'rbutil/rbutilqt/gui/changelog.cpp')
-rw-r--r-- | rbutil/rbutilqt/gui/changelog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/gui/changelog.cpp b/rbutil/rbutilqt/gui/changelog.cpp index 4ef1ae9266..1de272315d 100644 --- a/rbutil/rbutilqt/gui/changelog.cpp +++ b/rbutil/rbutilqt/gui/changelog.cpp | |||
@@ -24,6 +24,7 @@ Changelog::Changelog(QWidget *parent) : QDialog(parent) | |||
24 | { | 24 | { |
25 | ui.setupUi(this); | 25 | ui.setupUi(this); |
26 | ui.browserChangelog->setOpenExternalLinks(true); | 26 | ui.browserChangelog->setOpenExternalLinks(true); |
27 | // FIXME: support translated changelog file (changelog.de.txt etc) | ||
27 | ui.browserChangelog->setHtml(parseChangelogFile(":/docs/changelog.txt")); | 28 | ui.browserChangelog->setHtml(parseChangelogFile(":/docs/changelog.txt")); |
28 | ui.browserChangelog->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor); | 29 | ui.browserChangelog->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor); |
29 | ui.checkBoxShowAlways->setChecked(RbSettings::value(RbSettings::ShowChangelog).toBool()); | 30 | ui.checkBoxShowAlways->setChecked(RbSettings::value(RbSettings::ShowChangelog).toBool()); |
@@ -44,6 +45,7 @@ QString Changelog::parseChangelogFile(QString filename) | |||
44 | QFile changelog(filename); | 45 | QFile changelog(filename); |
45 | changelog.open(QIODevice::ReadOnly); | 46 | changelog.open(QIODevice::ReadOnly); |
46 | QTextStream c(&changelog); | 47 | QTextStream c(&changelog); |
48 | c.setCodec(QTextCodec::codecForName("UTF-8")); | ||
47 | QString text; | 49 | QString text; |
48 | while(!c.atEnd()) { | 50 | while(!c.atEnd()) { |
49 | QString line = c.readLine(); | 51 | QString line = c.readLine(); |