diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-16 22:30:49 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-16 22:30:49 +0900 |
commit | 16fd53ff0be54531661e9e0cd27c4f893295b62e (patch) | |
tree | 00171a62c9f13b973ddcc16faad3864dbe8d56e2 /user.cpp | |
parent | 726f8d464f4b29f6fd3dc92fa5493e239970b209 (diff) | |
parent | cb3848c1e7fe09c2e778d38139c399b9f0484ce5 (diff) | |
download | libquotient-16fd53ff0be54531661e9e0cd27c4f893295b62e.tar.gz libquotient-16fd53ff0be54531661e9e0cd27c4f893295b62e.zip |
Merge branch 'master' into kitsune-invite-kick
Diffstat (limited to 'user.cpp')
-rw-r--r-- | user.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -170,12 +170,11 @@ void User::requestAvatar() void User::Private::requestAvatar() { - MediaThumbnailJob* job = connection->getThumbnail(avatarUrl, requestedSize); + auto* job = connection->callApi<MediaThumbnailJob>(avatarUrl, requestedSize); connect( job, &MediaThumbnailJob::success, [=]() { avatarOngoingRequest = false; avatarValid = true; - avatar = job->thumbnail().scaled(requestedSize, - Qt::KeepAspectRatio, Qt::SmoothTransformation); + avatar = job->scaledThumbnail(requestedSize); scaledAvatars.clear(); emit q->avatarChanged(q); }); |