1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-15 02:24:50 +02:00

Fix DropDownButton activation in GridView

This commit is contained in:
Dominik Schmidt
2016-04-14 14:48:50 +02:00
parent 8749a04e23
commit c88640268a

View File

@@ -629,7 +629,9 @@ GridItemDelegate::editorEvent( QEvent* event, QAbstractItemModel* model, const Q
if ( item->query() && item->query()->numResults( true ) && !item->query()->results().first()->downloadFormats().isEmpty() ) if ( item->query() && item->query()->numResults( true ) && !item->query()->results().first()->downloadFormats().isEmpty() )
{ {
m_model->sourceModel()->setAllColumnsEditable( true );
m_view->edit( index ); m_view->edit( index );
m_model->sourceModel()->setAllColumnsEditable( false );
return true; return true;
} }
else else