mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
* Added debug output to catch collection bug.
This commit is contained in:
@@ -380,6 +380,7 @@ TreeModel::onTracksFound( const QList<Tomahawk::query_ptr>& tracks, Tomahawk::Mo
|
||||
Tomahawk::Album* album = qobject_cast<Tomahawk::Album*>( sender() );
|
||||
|
||||
QModelIndex idx = indexFromAlbum( album->weakRef().toStrongRef() );
|
||||
tDebug() << "Adding tracks" << tracks.count() << "to index:" << idx;
|
||||
onTracksAdded( tracks, idx );
|
||||
}
|
||||
|
||||
@@ -397,6 +398,7 @@ TreeModel::indexFromArtist( const Tomahawk::artist_ptr& artist ) const
|
||||
}
|
||||
}
|
||||
|
||||
tDebug() << "Could not find item for artist:" << artist->name();
|
||||
return QModelIndex();
|
||||
}
|
||||
|
||||
@@ -415,5 +417,6 @@ TreeModel::indexFromAlbum( const Tomahawk::album_ptr& album ) const
|
||||
}
|
||||
}
|
||||
|
||||
tDebug() << "Could not find item for artist:" << album->name() << album->artist()->name();
|
||||
return QModelIndex();
|
||||
}
|
||||
|
Reference in New Issue
Block a user