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:
@@ -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;
|
||||||
|
@@ -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 );
|
||||||
|
Reference in New Issue
Block a user