From 5ea0ef404fb3a3b29d003fcb05a2633ef6837ec9 Mon Sep 17 00:00:00 2001 From: Christian Kaiser Date: Sat, 17 Dec 2016 23:17:29 -0300 Subject: [PATCH] Fixed imgur authentication --- tools/uploader/imguruploader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/uploader/imguruploader.cpp b/tools/uploader/imguruploader.cpp index b63019f..f621388 100644 --- a/tools/uploader/imguruploader.cpp +++ b/tools/uploader/imguruploader.cpp @@ -185,9 +185,9 @@ void ImgurUploader::uploadProgress(qint64 bytesReceived, qint64 bytesTotal) void ImgurUploader::authorizationReply(QNetworkReply *reply, AuthorizationCallback callback) { - reply->deleteLater(); - connect(reply, &QNetworkReply::finished, [reply, callback] { + reply->deleteLater(); + bool authorized = false; const QJsonObject imgurResponse = QJsonDocument::fromJson(reply->readAll()).object();