1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02: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

View File

@@ -152,6 +152,13 @@ DropJob::isDropType( DropJob::DropType desired, const QMimeData* data )
// Not the most elegant // Not the most elegant
if ( url.contains( "spotify" ) && url.contains( "playlist" ) && s_canParseSpotifyPlaylists ) if ( url.contains( "spotify" ) && url.contains( "playlist" ) && s_canParseSpotifyPlaylists )
return true; 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; return false;

View File

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