mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
* Assert when trying to create a track without artist or track name.
This commit is contained in:
@@ -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 )
|
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() )
|
if ( artist.trimmed().isEmpty() || track.trimmed().isEmpty() )
|
||||||
|
{
|
||||||
|
Q_ASSERT( false );
|
||||||
return track_ptr();
|
return track_ptr();
|
||||||
|
}
|
||||||
|
|
||||||
QMutexLocker lock( &s_mutex );
|
QMutexLocker lock( &s_mutex );
|
||||||
const QString key = cacheKey( artist, track, album, duration, composer, albumpos, discnumber );
|
const QString key = cacheKey( artist, track, album, duration, composer, albumpos, discnumber );
|
||||||
|
Reference in New Issue
Block a user