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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user