From 10a32c47a95b8438309841c4cb63159c4799bb8b Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 5 Jan 2018 11:06:30 +0900 Subject: Avatar: Use Connection::getThumbnail instead of callApi<> --- avatar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'avatar.cpp') 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(_url, size); + _ongoingRequest = _connection->getThumbnail(_url, size); _ongoingRequest->connect( _ongoingRequest, &MediaThumbnailJob::finished, _connection, [=]() { if (_ongoingRequest->status().good()) -- cgit v1.2.3