mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
oops, fix oversight
This commit is contained in:
@@ -361,7 +361,7 @@ SourceTreeView::dropEvent( QDropEvent* event )
|
|||||||
void
|
void
|
||||||
SourceTreeView::keyPressEvent( QKeyEvent *event )
|
SourceTreeView::keyPressEvent( QKeyEvent *event )
|
||||||
{
|
{
|
||||||
if( !selectionModel()->selectedIndexes().isEmpty() )
|
if( event->key() == Qt::Key_Delete && !selectionModel()->selectedIndexes().isEmpty() )
|
||||||
{
|
{
|
||||||
QModelIndex idx = selectionModel()->selectedIndexes().first();
|
QModelIndex idx = selectionModel()->selectedIndexes().first();
|
||||||
if ( model()->data( idx, SourcesModel::SourceTreeItemTypeRole ) == SourcesModel::StaticPlaylist ||
|
if ( model()->data( idx, SourcesModel::SourceTreeItemTypeRole ) == SourcesModel::StaticPlaylist ||
|
||||||
|
Reference in New Issue
Block a user