mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-13 20:41:58 +02:00
* Return null result when trying to create one without a url.
This commit is contained in:
parent
ee2a71a09f
commit
9b53dc5c4e
@ -55,6 +55,12 @@ sourceCacheKey( Resolver* resolver, const QSize& size, TomahawkUtils::ImageMode
|
||||
Tomahawk::result_ptr
|
||||
Result::get( const QString& url )
|
||||
{
|
||||
if ( url.trimmed().isEmpty() )
|
||||
{
|
||||
// Q_ASSERT( false );
|
||||
return result_ptr();
|
||||
}
|
||||
|
||||
QMutexLocker lock( &s_mutex );
|
||||
if ( s_results.contains( url ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user