mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* Prevent crash in TomahawkUtils::prepareStyleOption.
This commit is contained in:
@@ -754,7 +754,7 @@ prepareStyleOption( QStyleOptionViewItemV4* option, const QModelIndex& index, Pl
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
float opacity = 0.0;
|
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 = item->query()->results().first()->score();
|
||||||
|
|
||||||
opacity = qMax( (float)0.3, opacity );
|
opacity = qMax( (float)0.3, opacity );
|
||||||
|
Reference in New Issue
Block a user