1
0
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:
Leo Franchi
2011-05-28 20:00:32 -04:00
parent 75cea47cfa
commit ee8a0d6691

View File

@@ -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 ||