aboutsummaryrefslogtreecommitdiff
path: root/avatar.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-05 11:06:30 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-09 11:01:03 +0900
commit10a32c47a95b8438309841c4cb63159c4799bb8b (patch)
tree4804e8e5fc2ac0618c2967ceb5147807de16f5b9 /avatar.cpp
parent02e518415c140e8271c4f4222fb7e1d42393de66 (diff)
downloadlibquotient-10a32c47a95b8438309841c4cb63159c4799bb8b.tar.gz
libquotient-10a32c47a95b8438309841c4cb63159c4799bb8b.zip
Avatar: Use Connection::getThumbnail instead of callApi<>
Diffstat (limited to 'avatar.cpp')
-rw-r--r--avatar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/avatar.cpp b/avatar.cpp
index 9490347d..eeb61f30 100644
--- a/avatar.cpp
+++ b/avatar.cpp
@@ -76,7 +76,7 @@ QImage Avatar::Private::get(QSize size, Avatar::notifier_t notifier)
if (_ongoingRequest)
_ongoingRequest->abandon();
notifiers.emplace_back(std::move(notifier));
- _ongoingRequest = _connection->callApi<MediaThumbnailJob>(_url, size);
+ _ongoingRequest = _connection->getThumbnail(_url, size);
_ongoingRequest->connect( _ongoingRequest, &MediaThumbnailJob::finished,
_connection, [=]() {
if (_ongoingRequest->status().good())