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

fix covers again after using the proxymodel

This commit is contained in:
Michael Zanetti
2012-07-05 13:30:29 +02:00
parent 64f4445a01
commit 9e6dbcc7b1

View File

@@ -93,10 +93,10 @@ QPixmap DynamicQmlWidget::requestPixmap(const QString &id, QSize *size, const QS
if( size )
*size = QSize( width, height );
QModelIndex index = m_proxyModel->index( id.toInt(), 0, QModelIndex() );
QModelIndex index = m_model->index( id.toInt(), 0, QModelIndex() );
qDebug() << "!*!*!*! got index" << index << id;
if( index.isValid() ) {
PlayableItem *item = m_model->itemFromIndex( m_proxyModel->mapToSource( index ) );
PlayableItem *item = m_model->itemFromIndex( index );
qDebug() << "item:" << item;
qDebug() << "item2:" << item->artistName() << item->name();
if ( !item->album().isNull() ) {