mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Don't show an empty-warning while still loading album page.
This commit is contained in:
@@ -212,7 +212,12 @@ TreeModel::addTracks( const album_ptr& album, const QModelIndex& parent )
|
|||||||
{
|
{
|
||||||
startLoading();
|
startLoading();
|
||||||
|
|
||||||
onTracksAdded( album->tracks( m_mode, m_collection ), parent );
|
QList<query_ptr> tracks = album->tracks( m_mode, m_collection );
|
||||||
|
onTracksAdded( tracks, parent );
|
||||||
|
|
||||||
|
if ( tracks.isEmpty() )
|
||||||
|
startLoading();
|
||||||
|
|
||||||
NewClosure( album.data(), SIGNAL( tracksAdded( QList<Tomahawk::query_ptr>, Tomahawk::ModelMode, Tomahawk::collection_ptr ) ),
|
NewClosure( album.data(), SIGNAL( tracksAdded( QList<Tomahawk::query_ptr>, Tomahawk::ModelMode, Tomahawk::collection_ptr ) ),
|
||||||
const_cast<TreeModel*>(this), SLOT( addTracks( Tomahawk::album_ptr, QModelIndex ) ), album, parent );
|
const_cast<TreeModel*>(this), SLOT( addTracks( Tomahawk::album_ptr, QModelIndex ) ), album, parent );
|
||||||
}
|
}
|
||||||
|
@@ -144,7 +144,6 @@ AlbumInfoWidget::load( const album_ptr& album )
|
|||||||
|
|
||||||
m_headerWidget->setCaption( album->artist()->name() );
|
m_headerWidget->setCaption( album->artist()->name() );
|
||||||
|
|
||||||
m_tracksModel->startLoading();
|
|
||||||
m_tracksModel->addTracks( album, QModelIndex() );
|
m_tracksModel->addTracks( album, QModelIndex() );
|
||||||
|
|
||||||
onAlbumImageUpdated();
|
onAlbumImageUpdated();
|
||||||
|
Reference in New Issue
Block a user