mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Never trigger edit events for non-Locker models.
This commit is contained in:
parent
b431f28fc2
commit
21e2aecd2b
@ -273,7 +273,7 @@ PlaylistItemDelegate::paintDetailed( QPainter* painter, const QStyleOptionViewIt
|
||||
painter->drawRect( fillR );
|
||||
}
|
||||
else */
|
||||
if ( index.column() == PlayableModel::Download )
|
||||
if ( m_view->proxyModel()->style() == PlayableProxyModel::Locker && index.column() == PlayableModel::Download )
|
||||
{
|
||||
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 );
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user