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