pull/1/head
Konstantinos Sideris 7 years ago
parent 64dd4c5985
commit 4098cf6780
  1. 4
      src/MatrixClient.cc

@ -28,8 +28,6 @@
#include <QSettings>
#include <QUrlQuery>
#include <zlib.h>
#include "Login.h"
#include "MatrixClient.h"
#include "Register.h"
@ -698,7 +696,7 @@ MatrixClient::fetchUserAvatar(const QUrl &avatarUrl,
QNetworkRequest avatar_request(endpoint);
auto reply = get(avatar_request);
connect(reply, &QNetworkReply::finished, this, [this, reply, onSuccess, onError]() {
connect(reply, &QNetworkReply::finished, this, [reply, onSuccess, onError]() {
reply->deleteLater();
int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();

Loading…
Cancel
Save