mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Return empty query_ptr when query data is invalid.
This commit is contained in:
@@ -82,8 +82,8 @@ PlaybackLog::PlaybackLog( const PlaybackLog& other )
|
|||||||
query_ptr
|
query_ptr
|
||||||
Query::get( const QString& artist, const QString& track, const QString& album, const QID& qid, bool autoResolve )
|
Query::get( const QString& artist, const QString& track, const QString& album, const QID& qid, bool autoResolve )
|
||||||
{
|
{
|
||||||
Q_ASSERT( !artist.trimmed().isEmpty() );
|
if ( artist.trimmed().isEmpty() || track.trimmed().isEmpty() )
|
||||||
Q_ASSERT( !track.trimmed().isEmpty() );
|
return query_ptr();
|
||||||
|
|
||||||
if ( qid.isEmpty() )
|
if ( qid.isEmpty() )
|
||||||
autoResolve = false;
|
autoResolve = false;
|
||||||
|
Reference in New Issue
Block a user