mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-01 11:56:45 +01:00
Don't show the artist image widget if there are no images
This commit is contained in:
parent
37ed1dc879
commit
1e3c459e7d
@ -47,6 +47,7 @@ void ArtistInfoView::ResultReady(int id, const SongInfoFetcher::Result& result)
|
|||||||
|
|
||||||
Clear();
|
Clear();
|
||||||
|
|
||||||
|
if (!result.images_.isEmpty()) {
|
||||||
// Image view goes at the top
|
// Image view goes at the top
|
||||||
PrettyImageView* image_view = new PrettyImageView(this);
|
PrettyImageView* image_view = new PrettyImageView(this);
|
||||||
AddWidget(image_view);
|
AddWidget(image_view);
|
||||||
@ -54,6 +55,7 @@ void ArtistInfoView::ResultReady(int id, const SongInfoFetcher::Result& result)
|
|||||||
foreach (const QUrl& url, result.images_) {
|
foreach (const QUrl& url, result.images_) {
|
||||||
image_view->AddImage(url);
|
image_view->AddImage(url);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach (const CollapsibleInfoPane::Data& data, result.info_) {
|
foreach (const CollapsibleInfoPane::Data& data, result.info_) {
|
||||||
AddSection(new CollapsibleInfoPane(data, this));
|
AddSection(new CollapsibleInfoPane(data, this));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user