mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +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::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;
|
||||
|
Reference in New Issue
Block a user