Skip to content

Commit

Permalink
Fixed imgur authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
ckaiser committed Dec 18, 2016
1 parent f3a9237 commit 5ea0ef4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/uploader/imguruploader.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 5ea0ef4

Please sign in to comment.