From 53eb9183575c57e6632c8e6d5527568add2f3199 Mon Sep 17 00:00:00 2001 From: Nils Schwabe Date: Thu, 6 Mar 2014 17:43:50 +0100 Subject: fixed umlauts in xml --- src/dialog.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/dialog.cpp') diff --git a/src/dialog.cpp b/src/dialog.cpp index 38711c3..9367bf8 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -274,7 +274,6 @@ void Dialog::addSessionsAfterDownload(QNetworkReply* reply) { } else { - QString xml_doc(reply->readAll()); QFile file(filename); if (!file.open(QIODevice::WriteOnly)) { @@ -284,7 +283,7 @@ void Dialog::addSessionsAfterDownload(QNetworkReply* reply) { return; } - QByteArray data = xml_doc.toUtf8(); + QByteArray data = reply->readAll(); if (file.write(data) != data.length()) { return; -- cgit v1.2.3-55-g7522