1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

Always clear spinner when no albums found to load in albumview

This commit is contained in:
Leo Franchi 2011-11-18 13:04:04 -05:00
parent 80e1946fa4
commit 708668ea0a

View File

@ -290,14 +290,14 @@ AlbumModel::addFilteredCollection( const collection_ptr& collection, unsigned in
void
AlbumModel::addAlbums( const QList<Tomahawk::album_ptr>& albums )
{
emit loadingFinished();
if ( !albums.count() )
return;
if ( m_overwriteOnAdd )
clear();
emit loadingFinished();
int c = rowCount( QModelIndex() );
QPair< int, int > crows;
crows.first = c;