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:
parent
44fa85af6b
commit
f3dfc9631c
src
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user