1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-24 17:59:42 +01:00

* Removed obsolete guid handling in PlaylistView.

This commit is contained in:
Christian Muehlhaeuser 2012-11-09 06:38:40 +01:00
parent 1879469f1f
commit fa98d23a13

View File

@ -62,18 +62,6 @@ PlaylistView::setPlaylistModel( PlaylistModel* model )
setColumnHidden( PlayableModel::Age, true ); // Hide age column per default
setColumnHidden( PlayableModel::Composer, true ); // Hide composer column per default
if ( guid().isEmpty() && proxyModel()->columnCount() > 1 )
{
if ( !m_model->playlist().isNull() )
{
setGuid( QString( "playlistview/%1/%2" ).arg( proxyModel()->columnCount() ).arg( m_model->playlist()->guid() ) );
}
else
{
setGuid( QString( "playlistview/%1" ).arg( proxyModel()->columnCount() ) );
}
}
connect( m_model, SIGNAL( playlistDeleted() ), SLOT( onDeleted() ) );
connect( m_model, SIGNAL( playlistChanged() ), SLOT( onChanged() ) );