mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Prevent crash in TomahawkUtils::prepareStyleOption.
This commit is contained in:
@@ -754,7 +754,7 @@ prepareStyleOption( QStyleOptionViewItemV4* option, const QModelIndex& index, Pl
|
||||
else
|
||||
{
|
||||
float opacity = 0.0;
|
||||
if ( !item->query()->results().isEmpty() && item->query()->results().first()->isOnline() )
|
||||
if ( item->query() && !item->query()->results().isEmpty() && item->query()->results().first()->isOnline() )
|
||||
opacity = item->query()->results().first()->score();
|
||||
|
||||
opacity = qMax( (float)0.3, opacity );
|
||||
|
Reference in New Issue
Block a user