mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Never trigger edit events for non-Locker models.
This commit is contained in:
@@ -273,7 +273,7 @@ PlaylistItemDelegate::paintDetailed( QPainter* painter, const QStyleOptionViewIt
|
|||||||
painter->drawRect( fillR );
|
painter->drawRect( fillR );
|
||||||
}
|
}
|
||||||
else */
|
else */
|
||||||
if ( index.column() == PlayableModel::Download )
|
if ( m_view->proxyModel()->style() == PlayableProxyModel::Locker && index.column() == PlayableModel::Download )
|
||||||
{
|
{
|
||||||
if ( item->result() && !item->result()->downloadFormats().isEmpty() )
|
if ( item->result() && !item->result()->downloadFormats().isEmpty() )
|
||||||
{
|
{
|
||||||
@@ -889,7 +889,7 @@ PlaylistItemDelegate::editorEvent( QEvent* event, QAbstractItemModel* model, con
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( index.column() == PlayableModel::Download )
|
else if ( m_view->proxyModel()->style() == PlayableProxyModel::Locker && index.column() == PlayableModel::Download )
|
||||||
{
|
{
|
||||||
m_view->edit( index );
|
m_view->edit( index );
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user