mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Load album before adding to view to avoid flashing empty playlist message
This commit is contained in:
@@ -240,10 +240,10 @@ ViewManager::show( const Tomahawk::album_ptr& album )
|
|||||||
{
|
{
|
||||||
view = new PlaylistView();
|
view = new PlaylistView();
|
||||||
PlaylistModel* model = new PlaylistModel();
|
PlaylistModel* model = new PlaylistModel();
|
||||||
|
model->append( album );
|
||||||
view->setPlaylistModel( model );
|
view->setPlaylistModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
view->setFrameShape( QFrame::NoFrame );
|
||||||
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
model->append( album );
|
|
||||||
|
|
||||||
m_albumViews.insert( album, view );
|
m_albumViews.insert( album, view );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user