1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 02:09:48 +01:00

use setTrackModel, as CollectionView::setModel() suggests.

Fixes assertion when selecting a collection.
This commit is contained in:
Frank Osterfeld 2011-04-13 14:08:55 +02:00
parent 9d28c11089
commit 9b5be063bd

View File

@ -269,7 +269,7 @@ PlaylistManager::show( const Tomahawk::collection_ptr& collection )
{
view = new CollectionView();
CollectionFlatModel* model = new CollectionFlatModel();
view->setModel( model );
view->setTrackModel( model );
view->setFrameShape( QFrame::NoFrame );
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );