1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

* Nicer code in ContextView.

This commit is contained in:
Christian Muehlhaeuser 2014-09-29 23:24:02 +02:00
parent b09089773c
commit 5e89e127b7

View File

@ -152,11 +152,12 @@ ContextView::onCoverUpdated()
if ( !m_query || m_query->track()->cover( QSize( 0, 0 ) ).isNull() )
{
m_pixmap = QPixmap();
emit pixmapChanged( m_pixmap );
return;
}
else
{
m_pixmap = m_query->track()->cover( QSize( 0, 0 ) );
}
m_pixmap = m_query->track()->cover( QSize( 0, 0 ) );
emit pixmapChanged( m_pixmap );
}