Use fromPercentEncoding to download URL (attempting to get download to run on Mac).

This commit is contained in:
NissimHadar 2018-10-25 15:18:29 -07:00
parent 47ce1573eb
commit d2e31b3f67

View file

@ -17,7 +17,7 @@ Downloader::Downloader(QUrl fileURL, QObject *parent) : QObject(parent) {
this, SLOT (fileDownloaded(QNetworkReply*))
);
QNetworkRequest request(fileURL);
QNetworkRequest request(QUrl::fromPercentEncoding(fileURL.toString().toLatin1()));
_networkAccessManager.get(request);
}