1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Merge pull request #41 from hugolm84/master

Fix for spotify playlist append action
This commit is contained in:
Hugo Lindström 2011-10-03 01:46:18 -07:00
commit 73bcbd2590

View File

@ -368,10 +368,10 @@ PlaylistModel::dropMimeData( const QMimeData* data, Qt::DropAction action, int r
DropJob* dj = new DropJob();
if ( !DropJob::acceptsMimeData( data, DropJob::Track | DropJob::Album | DropJob::Artist ) )
if ( !DropJob::acceptsMimeData( data, DropJob::Track | DropJob::Playlist | DropJob::Album | DropJob::Artist ) )
return false;
dj->setDropTypes( DropJob::Track | DropJob::Artist | DropJob::Album );
dj->setDropTypes( DropJob::Track | DropJob::Playlist | DropJob::Artist | DropJob::Album );
dj->setDropAction( DropJob::Append );
// On mac, drags from outside the app are still Qt::MoveActions instead of Qt::CopyAction by default