mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 04:58:04 +02:00
Simplified, and seems to work
This commit is contained in:
parent
d2e31b3f67
commit
7bf6e9cda9
1 changed files with 2 additions and 3 deletions
|
@ -17,8 +17,7 @@ Downloader::Downloader(QUrl fileURL, QObject *parent) : QObject(parent) {
|
|||
this, SLOT (fileDownloaded(QNetworkReply*))
|
||||
);
|
||||
|
||||
QNetworkRequest request(QUrl::fromPercentEncoding(fileURL.toString().toLatin1()));
|
||||
_networkAccessManager.get(request);
|
||||
_networkAccessManager.get(QNetworkRequest(fileURL));
|
||||
}
|
||||
|
||||
void Downloader::fileDownloaded(QNetworkReply* reply) {
|
||||
|
@ -37,4 +36,4 @@ void Downloader::fileDownloaded(QNetworkReply* reply) {
|
|||
|
||||
QByteArray Downloader::downloadedData() const {
|
||||
return _downloadedData;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue