1
0
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:
Christian Muehlhaeuser
2012-09-15 06:54:37 +02:00
parent 0049177348
commit b9318b3e40

View File

@@ -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();
}