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:
parent
8e3de08d87
commit
ee2a71a09f
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user