diff options
Diffstat (limited to 'logic/screenshots')
-rw-r--r-- | logic/screenshots/ImgurAlbumCreation.cpp | 4 | ||||
-rw-r--r-- | logic/screenshots/ImgurUpload.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/logic/screenshots/ImgurAlbumCreation.cpp b/logic/screenshots/ImgurAlbumCreation.cpp index 91cf4bb1..86edd5a5 100644 --- a/logic/screenshots/ImgurAlbumCreation.cpp +++ b/logic/screenshots/ImgurAlbumCreation.cpp @@ -7,7 +7,7 @@ #include <QStringList> #include "logic/net/URLConstants.h" -#include "MultiMC.h" +#include "logic/Env.h" #include "logger/QsLog.h" ImgurAlbumCreation::ImgurAlbumCreation(QList<ScreenshotPtr> screenshots) : NetAction(), m_screenshots(screenshots) @@ -33,7 +33,7 @@ void ImgurAlbumCreation::start() const QByteArray data = "ids=" + ids.join(',').toUtf8() + "&title=Minecraft%20Screenshots&privacy=hidden"; - auto worker = MMC->qnam(); + auto worker = ENV.qnam(); QNetworkReply *rep = worker->post(request, data); m_reply = std::shared_ptr<QNetworkReply>(rep); diff --git a/logic/screenshots/ImgurUpload.cpp b/logic/screenshots/ImgurUpload.cpp index f305aec0..91643e68 100644 --- a/logic/screenshots/ImgurUpload.cpp +++ b/logic/screenshots/ImgurUpload.cpp @@ -9,7 +9,7 @@ #include <QUrl> #include "logic/net/URLConstants.h" -#include "MultiMC.h" +#include "logic/Env.h" #include "logger/QsLog.h" ImgurUpload::ImgurUpload(ScreenshotPtr shot) : NetAction(), m_shot(shot) @@ -48,7 +48,7 @@ void ImgurUpload::start() namePart.setBody(m_shot->m_file.baseName().toUtf8()); multipart->append(namePart); - auto worker = MMC->qnam(); + auto worker = ENV.qnam(); QNetworkReply *rep = worker->post(request, multipart); m_reply = std::shared_ptr<QNetworkReply>(rep); |