diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-22 04:21:36 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-22 04:21:36 +0200 |
commit | ceca6959d2a7f258d62ac4f589095b65084706c3 (patch) | |
tree | 8ce02eb4713bf8e770e02e97c99ad45f492cc688 /logic/LegacyUpdate.cpp | |
parent | c2c7293083de8e8d40190992ccd6a65b613a4d06 (diff) | |
download | MultiMC-ceca6959d2a7f258d62ac4f589095b65084706c3.tar MultiMC-ceca6959d2a7f258d62ac4f589095b65084706c3.tar.gz MultiMC-ceca6959d2a7f258d62ac4f589095b65084706c3.tar.lz MultiMC-ceca6959d2a7f258d62ac4f589095b65084706c3.tar.xz MultiMC-ceca6959d2a7f258d62ac4f589095b65084706c3.zip |
Working 1.6 modding (currently only forge)
Diffstat (limited to 'logic/LegacyUpdate.cpp')
-rw-r--r-- | logic/LegacyUpdate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/LegacyUpdate.cpp b/logic/LegacyUpdate.cpp index 0f58e3e3..84d3d830 100644 --- a/logic/LegacyUpdate.cpp +++ b/logic/LegacyUpdate.cpp @@ -60,7 +60,7 @@ void LegacyUpdate::lwjglStart() m_reply = QSharedPointer<QNetworkReply> (rep, &QObject::deleteLater); connect(rep, SIGNAL(downloadProgress(qint64,qint64)), SIGNAL(progress(qint64,qint64))); - connect(worker, SIGNAL(finished(QNetworkReply*)), SLOT(lwjglFinished(QNetworkReply*))); + connect(worker.data(), SIGNAL(finished(QNetworkReply*)), SLOT(lwjglFinished(QNetworkReply*))); //connect(rep, SIGNAL(error(QNetworkReply::NetworkError)), SLOT(downloadError(QNetworkReply::NetworkError))); } @@ -77,7 +77,7 @@ void LegacyUpdate::lwjglFinished(QNetworkReply* reply) "\nSometimes you have to wait a bit if you download many LWJGL versions in a row. YMMV"); return; } - auto *worker = MMC->qnam(); + auto worker = MMC->qnam(); //Here i check if there is a cookie for me in the reply and extract it QList<QNetworkCookie> cookies = qvariant_cast<QList<QNetworkCookie>>(reply->header(QNetworkRequest::SetCookieHeader)); if(cookies.count() != 0) |