From 52d662ac5390dbf269eb69ec039d2264925fa04b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Wed, 8 Dec 2010 18:48:27 +0100 Subject: Use UTF-8 encoding for COPYING file in About dialog. 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); -- cgit v0.10.2-6-g49f6