From 69213b1206e97f7d4db4270a4b3b0af41dc9e6fc Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sun, 21 Nov 2021 23:21:12 +0100 Subject: NOISSUE continue refactoring things to make tests pass --- launcher/net/PasteUpload.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'launcher/net/PasteUpload.cpp') diff --git a/launcher/net/PasteUpload.cpp b/launcher/net/PasteUpload.cpp index 159c3e2a..4b69b68a 100644 --- a/launcher/net/PasteUpload.cpp +++ b/launcher/net/PasteUpload.cpp @@ -1,11 +1,12 @@ #include "PasteUpload.h" -#include "Env.h" +#include "BuildConfig.h" +#include "Application.h" + #include #include #include #include #include -#include PasteUpload::PasteUpload(QWidget *window, QString text, QString key) : m_window(window) { @@ -41,7 +42,7 @@ void PasteUpload::executeTask() request.setRawHeader("Content-Length", QByteArray::number(m_jsonContent.size())); request.setRawHeader("X-Auth-Token", m_key.toStdString().c_str()); - QNetworkReply *rep = ENV->network().post(request, m_jsonContent); + QNetworkReply *rep = APPLICATION->network()->post(request, m_jsonContent); m_reply = std::shared_ptr(rep); setStatus(tr("Uploading to paste.ee")); -- cgit