1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

* Abort when trying to add an empty set of tracks to the CollectionFlatModel.

This commit is contained in:
Christian Muehlhaeuser 2010-11-11 17:52:11 +01:00
parent 7a51516092
commit 92b6865a7e

View File

@ -130,6 +130,9 @@ CollectionFlatModel::removeCollection( const collection_ptr& collection )
void
CollectionFlatModel::onTracksAdded( const QList<Tomahawk::query_ptr>& tracks, const Tomahawk::collection_ptr& collection )
{
if ( !tracks.count() )
return;
int c = rowCount( QModelIndex() );
QPair< int, int > crows;
crows.first = c;