From 21e2aecd2b7dca102ce9f3b963ecb58dfbf024a3 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 10 Apr 2015 06:25:23 +0200 Subject: [PATCH] Never trigger edit events for non-Locker models. --- src/libtomahawk/playlist/PlaylistItemDelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/playlist/PlaylistItemDelegate.cpp b/src/libtomahawk/playlist/PlaylistItemDelegate.cpp index f25f441c7..ad5cafd8d 100644 --- a/src/libtomahawk/playlist/PlaylistItemDelegate.cpp +++ b/src/libtomahawk/playlist/PlaylistItemDelegate.cpp @@ -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;