mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
use setTrackModel, as CollectionView::setModel() suggests.
Fixes assertion when selecting a collection.
This commit is contained in:
@@ -269,7 +269,7 @@ PlaylistManager::show( const Tomahawk::collection_ptr& collection )
|
|||||||
{
|
{
|
||||||
view = new CollectionView();
|
view = new CollectionView();
|
||||||
CollectionFlatModel* model = new CollectionFlatModel();
|
CollectionFlatModel* model = new CollectionFlatModel();
|
||||||
view->setModel( model );
|
view->setTrackModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
view->setFrameShape( QFrame::NoFrame );
|
||||||
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user