1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-22 08:52:12 +02:00

Load album before adding to view to avoid flashing empty playlist message

This commit is contained in:
Leo Franchi 2011-07-22 11:11:13 -04:00
parent 0b9822d689
commit 36573c2342

@ -240,10 +240,10 @@ ViewManager::show( const Tomahawk::album_ptr& album )
{
view = new PlaylistView();
PlaylistModel* model = new PlaylistModel();
model->append( album );
view->setPlaylistModel( model );
view->setFrameShape( QFrame::NoFrame );
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
model->append( album );
m_albumViews.insert( album, view );
}