1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +02:00

Use cached size source icon in AudioControls

This commit is contained in:
Leo Franchi
2012-09-27 19:04:34 -04:00
parent 22377c6b3d
commit a0f92e9492

View File

@@ -264,7 +264,7 @@ AudioControls::onPlaybackLoading( const Tomahawk::result_ptr& result )
ui->loveButton->setToolTip( tr( "Love" ) );
ui->ownerButton->setToolTip( QString( tr( "Playing from %1" ) ).arg( result->friendlySource() ) );
QPixmap sourceIcon = result->sourceIcon().scaled( ui->ownerButton->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
QPixmap sourceIcon = result->sourceIcon( ui->ownerButton->size() );
if ( !sourceIcon.isNull() )
ui->ownerButton->setPixmap( sourceIcon );
else