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();