Commit f3d07f57 authored by Matthias Möller's avatar Matthias Möller

fix cppcheck warning

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16836 383ad7c9-94d9-4d36-a494-682f7c89f535
parent dce24997
......@@ -158,16 +158,7 @@ void HelpBrowser::open(const QUrl& _url, bool _skipSave) {
QString txt;
if (data.type() == QVariant::String) {
txt = data.toString();
} else if (data.type() == QVariant::ByteArray) {
QByteArray ba = data.toByteArray();
QTextCodec *codec = Qt::codecForHtml(ba);
txt = codec->toUnicode(ba);
txt = data.toString();
}
txt = data.toString();
setHtml(txt);
......
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