1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

Be less verbose in SourceTreeView.

This commit is contained in:
Christian Muehlhaeuser
2016-02-23 02:24:10 +01:00
parent 620d3fe3fc
commit 773ecea0da

View File

@@ -892,12 +892,10 @@ SourceTreeView::dropEvent( QDropEvent* event )
}*/ }*/
QTreeView::dropEvent( event ); QTreeView::dropEvent( event );
if ( event->isAccepted() ) if ( !event->isAccepted() )
{ {
tDebug() << Q_FUNC_INFO << "Ignoring accepted event!";
}
// if it's a playlist drop, accept it anywhere in the sourcetree by manually parsing it. // if it's a playlist drop, accept it anywhere in the sourcetree by manually parsing it.
else if ( DropJob::isDropType( DropJob::Playlist, event->mimeData() ) ) if ( DropJob::isDropType( DropJob::Playlist, event->mimeData() ) )
{ {
DropJob* dropThis = new DropJob; DropJob* dropThis = new DropJob;
dropThis->setDropTypes( DropJob::Playlist ); dropThis->setDropTypes( DropJob::Playlist );
@@ -913,6 +911,7 @@ SourceTreeView::dropEvent( QDropEvent* event )
event->acceptProposedAction(); event->acceptProposedAction();
event->accept(); event->accept();
} }
}
m_dragging = false; m_dragging = false;
m_dropIndex = QPersistentModelIndex(); m_dropIndex = QPersistentModelIndex();