1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-13 20:41:58 +02:00

* Assert when trying to create a track without artist or track name.

This commit is contained in:
Christian Muehlhaeuser 2013-04-29 05:26:33 +02:00
parent 8e3de08d87
commit ee2a71a09f

View File

@ -55,7 +55,10 @@ track_ptr
Track::get( const QString& artist, const QString& track, const QString& album, int duration, const QString& composer, unsigned int albumpos, unsigned int discnumber )
{
if ( artist.trimmed().isEmpty() || track.trimmed().isEmpty() )
{
Q_ASSERT( false );
return track_ptr();
}
QMutexLocker lock( &s_mutex );
const QString key = cacheKey( artist, track, album, duration, composer, albumpos, discnumber );