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

Always accept playlist drops on the sidebar

This commit is contained in:
Leo Franchi
2011-10-30 21:32:49 -04:00
parent 65779b18eb
commit e9ab459b30

View File

@@ -485,8 +485,9 @@ SourceTreeView::dragMoveEvent( QDragMoveEvent* event )
m_dropRect = QRect(); m_dropRect = QRect();
} }
if ( accept ) if ( accept || DropJob::isDropType( DropJob::Playlist, event->mimeData() ) )
{ {
// Playlists are accepted always since they can be dropped anywhere
//tDebug() << Q_FUNC_INFO << "Accepting"; //tDebug() << Q_FUNC_INFO << "Accepting";
event->setDropAction( Qt::CopyAction ); event->setDropAction( Qt::CopyAction );
event->accept(); event->accept();