1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-02-03 20:57:35 +01:00

Cope with receiving no images from spotify

(cherry picked from commit 4cd20ffdaa7cd5aa5a780d3bdca682d453caf7f6)
This commit is contained in:
John Maguire 2016-02-17 18:06:30 +00:00
parent 2219f88484
commit 8d2911bc32

View File

@ -125,7 +125,9 @@ void EchoNestImages::DoSpotifyImageRequest(const QString& id, int request_id) {
return (a.second.height() * a.second.width()) <
(b.second.height() * b.second.width());
});
emit ImageReady(request_id, image_urls.last().first);
if (!image_urls.isEmpty()) {
emit ImageReady(request_id, image_urls.last().first);
}
});
}