1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

* Update trackcount when a collection gets removed from CollectionFlatModel.

This commit is contained in:
Christian Muehlhaeuser
2010-11-24 10:11:28 +01:00
parent 69c1e54278
commit 8e974173bf
2 changed files with 5 additions and 0 deletions

View File

@@ -147,6 +147,8 @@ CollectionFlatModel::removeCollection( const collection_ptr& collection )
}
// m_collectionIndex.remove( collection );
emit trackCountChanged( rowCount( QModelIndex() ) );
}

View File

@@ -340,11 +340,14 @@ PlaylistManager::showCurrentTrack()
if ( m_views.contains( playlist ) )
{
unlinkPlaylist();
m_currentView = m_views.value( playlist );
m_currentProxyModel = m_currentView->proxyModel();
m_currentModel = m_currentView->model();
m_widget->setCurrentWidget( m_currentView );
linkPlaylist();
}
if ( m_currentView && m_currentProxyModel )