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:
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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user