summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-08 17:48:27 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-08 17:50:03 (GMT)
commit52d662ac5390dbf269eb69ec039d2264925fa04b (patch)
treefe8803ac0e94afaf68f963a26fad9fcb8559e11e /Swift
parent708e274fa379015ec34d0186187c07a37eebb3da (diff)
downloadswift-contrib-52d662ac5390dbf269eb69ec039d2264925fa04b.zip
swift-contrib-52d662ac5390dbf269eb69ec039d2264925fa04b.tar.bz2
Use UTF-8 encoding for COPYING file in About dialog.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtAboutWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtAboutWidget.cpp b/Swift/QtUI/QtAboutWidget.cpp
index e8b0baf..38a4a8c 100644
--- a/Swift/QtUI/QtAboutWidget.cpp
+++ b/Swift/QtUI/QtAboutWidget.cpp
@@ -59,7 +59,7 @@ void QtAboutWidget::handleLicenseClicked() {
QFile file(":/COPYING");
file.open(QIODevice::ReadOnly);
QTextStream in(&file);
- in.setAutoDetectUnicode(true);
+ in.setCodec("UTF-8");
text->setPlainText(in.readAll());
file.close();
text->resize(500, 600);