mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 19:14:06 +02:00
fix covers again after using the proxymodel
This commit is contained in:
@@ -93,10 +93,10 @@ QPixmap DynamicQmlWidget::requestPixmap(const QString &id, QSize *size, const QS
|
|||||||
if( size )
|
if( size )
|
||||||
*size = QSize( width, height );
|
*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;
|
qDebug() << "!*!*!*! got index" << index << id;
|
||||||
if( index.isValid() ) {
|
if( index.isValid() ) {
|
||||||
PlayableItem *item = m_model->itemFromIndex( m_proxyModel->mapToSource( index ) );
|
PlayableItem *item = m_model->itemFromIndex( index );
|
||||||
qDebug() << "item:" << item;
|
qDebug() << "item:" << item;
|
||||||
qDebug() << "item2:" << item->artistName() << item->name();
|
qDebug() << "item2:" << item->artistName() << item->name();
|
||||||
if ( !item->album().isNull() ) {
|
if ( !item->album().isNull() ) {
|
||||||
|
Reference in New Issue
Block a user