diff --git a/src/libtomahawk/playlist/GridItemDelegate.cpp b/src/libtomahawk/playlist/GridItemDelegate.cpp index bfd2e7716..fa6f30d43 100644 --- a/src/libtomahawk/playlist/GridItemDelegate.cpp +++ b/src/libtomahawk/playlist/GridItemDelegate.cpp @@ -940,9 +940,9 @@ GridItemDelegate::updateEditorGeometry( QWidget* editor, const QStyleOptionViewI comboBox->resize( option.rect.size() - QSize( 8, 0 ) ); comboBox->move( option.rect.x() + 4, option.rect.y() ); - if ( m_downloadDropDownRects.contains( index ) ) + if ( m_buyButtonRects.contains( index ) ) { - editor->setGeometry( m_downloadDropDownRects.value( index ) ); + editor->setGeometry( m_buyButtonRects.value( index ) ); } if ( !comboBox->property( "shownPopup" ).toBool() ) diff --git a/src/libtomahawk/playlist/GridItemDelegate.h b/src/libtomahawk/playlist/GridItemDelegate.h index 1f2b49234..d79648846 100644 --- a/src/libtomahawk/playlist/GridItemDelegate.h +++ b/src/libtomahawk/playlist/GridItemDelegate.h @@ -104,7 +104,6 @@ private: mutable QHash< QPersistentModelIndex, QRect > m_artistNameRects; mutable QHash< QPersistentModelIndex, QRect > m_albumNameRects; mutable QHash< QPersistentModelIndex, QRect > m_buyButtonRects; - mutable QHash< QPersistentModelIndex, QRect > m_downloadDropDownRects; mutable QHash< QPersistentModelIndex, QSharedPointer< Tomahawk::PixmapDelegateFader > > m_covers; QPersistentModelIndex m_hoverIndex;