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:
@@ -147,6 +147,8 @@ CollectionFlatModel::removeCollection( const collection_ptr& collection )
|
||||
}
|
||||
|
||||
// m_collectionIndex.remove( collection );
|
||||
|
||||
emit trackCountChanged( rowCount( QModelIndex() ) );
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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 )
|
||||
|
Reference in New Issue
Block a user