mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Working on possible crash on Mac.
This commit is contained in:
parent
e173b29687
commit
6313ab8ed7
1 changed files with 2 additions and 2 deletions
|
@ -12,12 +12,12 @@
|
||||||
#include <QtWidgets/QMessageBox>
|
#include <QtWidgets/QMessageBox>
|
||||||
|
|
||||||
Downloader::Downloader(QUrl fileURL, QObject *parent) : QObject(parent) {
|
Downloader::Downloader(QUrl fileURL, QObject *parent) : QObject(parent) {
|
||||||
|
_networkAccessManager.get(QNetworkRequest(fileURL));
|
||||||
|
|
||||||
connect(
|
connect(
|
||||||
&_networkAccessManager, SIGNAL (finished(QNetworkReply*)),
|
&_networkAccessManager, SIGNAL (finished(QNetworkReply*)),
|
||||||
this, SLOT (fileDownloaded(QNetworkReply*))
|
this, SLOT (fileDownloaded(QNetworkReply*))
|
||||||
);
|
);
|
||||||
|
|
||||||
_networkAccessManager.get(QNetworkRequest(fileURL));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Downloader::fileDownloaded(QNetworkReply* reply) {
|
void Downloader::fileDownloaded(QNetworkReply* reply) {
|
||||||
|
|
Loading…
Reference in a new issue