mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-21 05:11:44 +02:00
Fix #458: Completely disable BUY buttons in GridItemDelegate instead of only making them invisible
This commit is contained in:
@@ -347,6 +347,8 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
{
|
{
|
||||||
if ( !text.isEmpty() )
|
if ( !text.isEmpty() )
|
||||||
DropDownButton::drawPrimitive( painter, r, text, m_hoveringOverBuyButton == index, false );
|
DropDownButton::drawPrimitive( painter, r, text, m_hoveringOverBuyButton == index, false );
|
||||||
|
else
|
||||||
|
m_buyButtonRects.remove( index );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user