mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 02:24:50 +02:00
* Abort when trying to add an empty set of tracks to the CollectionFlatModel.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user