mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Fix some event loop reentrancy madness by creating the playlist on the event loop
This commit is contained in:
@@ -256,7 +256,7 @@ CategoryAddItem::dropMimeData( const QMimeData* data, Qt::DropAction )
|
|||||||
if ( data->hasFormat( "application/tomahawk.dragsource.type" ) )
|
if ( data->hasFormat( "application/tomahawk.dragsource.type" ) )
|
||||||
dj->setProperty( "dragsource", QString::fromUtf8( data->data( "application/tomahawk.dragsource.type" ) ) );
|
dj->setProperty( "dragsource", QString::fromUtf8( data->data( "application/tomahawk.dragsource.type" ) ) );
|
||||||
|
|
||||||
connect( dj, SIGNAL( tracks( QList< Tomahawk::query_ptr > ) ), this, SLOT( parsedDroppedTracks( QList< Tomahawk::query_ptr > ) ) );
|
connect( dj, SIGNAL( tracks( QList< Tomahawk::query_ptr > ) ), this, SLOT( parsedDroppedTracks( QList< Tomahawk::query_ptr > ) ), Qt::QueuedConnection );
|
||||||
if ( dropType() == DropTypeAllFromArtist )
|
if ( dropType() == DropTypeAllFromArtist )
|
||||||
dj->setGetWholeArtists( true );
|
dj->setGetWholeArtists( true );
|
||||||
if ( dropType() == DropTypeThisAlbum )
|
if ( dropType() == DropTypeThisAlbum )
|
||||||
|
Reference in New Issue
Block a user