1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02: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 void
AlbumModel::addAlbums( const QList<Tomahawk::album_ptr>& albums ) AlbumModel::addAlbums( const QList<Tomahawk::album_ptr>& albums )
{ {
emit loadingFinished();
if ( !albums.count() ) if ( !albums.count() )
return; return;
if ( m_overwriteOnAdd ) if ( m_overwriteOnAdd )
clear(); clear();
emit loadingFinished();
int c = rowCount( QModelIndex() ); int c = rowCount( QModelIndex() );
QPair< int, int > crows; QPair< int, int > crows;
crows.first = c; crows.first = c;