From 8148a18b32d23b8c4dd63578b402d58810ce86d3 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 21 Jun 2012 21:23:11 +0200 Subject: [PATCH] * Show a loading spinner for top hits. --- src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.cpp b/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.cpp index 8427e5807..5cebe17fc 100644 --- a/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.cpp +++ b/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.cpp @@ -228,6 +228,8 @@ ArtistInfoWidget::load( const artist_ptr& artist ) ui->artistLabel->setText( artist->name() ); + m_topHitsModel->startLoading(); + if ( !m_artist->albums( Mixed ).isEmpty() ) onAlbumsFound( m_artist->albums( Mixed ), Mixed ); @@ -258,6 +260,7 @@ ArtistInfoWidget::onTracksFound( const QList& queries, Mode { Q_UNUSED( mode ); + m_topHitsModel->finishLoading(); m_topHitsModel->append( queries ); }