1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

assert less :(

This commit is contained in:
Leo Franchi
2011-04-13 08:58:36 -04:00
parent 9b5be063bd
commit 34fe17a3e6

View File

@@ -156,7 +156,7 @@ PlaylistManager::show( const Tomahawk::playlist_ptr& playlist )
{ {
view = new PlaylistView(); view = new PlaylistView();
PlaylistModel* model = new PlaylistModel(); PlaylistModel* model = new PlaylistModel();
view->setModel( 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->loadPlaylist( playlist ); model->loadPlaylist( playlist );
@@ -212,7 +212,7 @@ PlaylistManager::show( const Tomahawk::artist_ptr& artist )
{ {
view = new PlaylistView(); view = new PlaylistView();
PlaylistModel* model = new PlaylistModel(); PlaylistModel* model = new PlaylistModel();
view->setModel( 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( artist ); model->append( artist );
@@ -239,7 +239,7 @@ PlaylistManager::show( const Tomahawk::album_ptr& album )
{ {
view = new PlaylistView(); view = new PlaylistView();
PlaylistModel* model = new PlaylistModel(); PlaylistModel* model = new PlaylistModel();
view->setModel( 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 ); model->append( album );
@@ -292,7 +292,7 @@ PlaylistManager::show( const Tomahawk::collection_ptr& collection )
{ {
aview = new AlbumView(); aview = new AlbumView();
AlbumModel* amodel = new AlbumModel( aview ); AlbumModel* amodel = new AlbumModel( aview );
aview->setModel( amodel ); aview->setAlbumModel( amodel );
aview->setFrameShape( QFrame::NoFrame ); aview->setFrameShape( QFrame::NoFrame );
aview->setAttribute( Qt::WA_MacShowFocusRect, 0 ); aview->setAttribute( Qt::WA_MacShowFocusRect, 0 );
amodel->addCollection( collection ); amodel->addCollection( collection );