1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-15 10:33:59 +02:00

* Don't show a score for offline sources.

This commit is contained in:
Christian Muehlhaeuser
2013-07-23 17:02:29 +02:00
parent e556bbe178
commit 6bcc662f7b

View File

@@ -235,7 +235,12 @@ PlayableModel::queryData( const query_ptr& query, int column, int role ) const
case Score:
{
float score = query->results().first()->score();
float score;
if ( query->results().first()->isOnline() )
score = query->results().first()->score();
else
score = 0.0;
return scoreText( score );
break;
}
@@ -407,8 +412,6 @@ PlayableModel::mimeTypes() const
QMimeData*
PlayableModel::mimeData( const QModelIndexList &indexes ) const
{
qDebug() << Q_FUNC_INFO;
QByteArray resultData;
QDataStream resultStream( &resultData, QIODevice::WriteOnly );