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

fix some playlist drops on sidebar stuff

This commit is contained in:
Leo Franchi 2011-10-30 18:41:19 -04:00
parent 44fa85af6b
commit f3dfc9631c
2 changed files with 10 additions and 0 deletions
src
libtomahawk
sourcetree

@ -152,6 +152,13 @@ DropJob::isDropType( DropJob::DropType desired, const QMimeData* data )
// Not the most elegant
if ( url.contains( "spotify" ) && url.contains( "playlist" ) && s_canParseSpotifyPlaylists )
return true;
// we don't know about these.. gotta say yes for now
if ( url.contains( "bit.ly" ) ||
url.contains( "j.mp" ) ||
url.contains( "t.co" ) ||
url.contains( "rd.io" ) )
return true;
}
return false;

@ -539,6 +539,9 @@ SourceTreeView::dropEvent( QDropEvent* event )
dropThis->setDropTypes( DropJob::Playlist );
dropThis->setDropAction( DropJob::Create );
dropThis->parseMimeData( event->mimeData() );
// Don't add it to the playlist under drop, it's a new playlist now
return;
}
QTreeView::dropEvent( event );