mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 08:19:42 +01:00
* Return empty query_ptr when query data is invalid.
This commit is contained in:
parent
c1cb85fee6
commit
4d188af33e
@ -82,8 +82,8 @@ PlaybackLog::PlaybackLog( const PlaybackLog& other )
|
||||
query_ptr
|
||||
Query::get( const QString& artist, const QString& track, const QString& album, const QID& qid, bool autoResolve )
|
||||
{
|
||||
Q_ASSERT( !artist.trimmed().isEmpty() );
|
||||
Q_ASSERT( !track.trimmed().isEmpty() );
|
||||
if ( artist.trimmed().isEmpty() || track.trimmed().isEmpty() )
|
||||
return query_ptr();
|
||||
|
||||
if ( qid.isEmpty() )
|
||||
autoResolve = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user