mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Don't accept a drop (even though our flags should block it) to fall through if the playlist is busy
This commit is contained in:
@@ -138,7 +138,7 @@ bool
|
||||
PlaylistItem::willAcceptDrag( const QMimeData* data ) const
|
||||
{
|
||||
Q_UNUSED( data );
|
||||
return !m_playlist.isNull() && m_playlist->author()->isLocal() && DropJob::acceptsMimeData( data, DropJob::Track );
|
||||
return !m_playlist.isNull() && m_playlist->author()->isLocal() && DropJob::acceptsMimeData( data, DropJob::Track ) && !m_playlist->busy();
|
||||
}
|
||||
|
||||
PlaylistItem::DropTypes
|
||||
@@ -169,6 +169,9 @@ PlaylistItem::dropMimeData( const QMimeData* data, Qt::DropAction action )
|
||||
{
|
||||
Q_UNUSED( action );
|
||||
|
||||
if ( m_playlist->busy() )
|
||||
return false;
|
||||
|
||||
QList< Tomahawk::query_ptr > queries;
|
||||
|
||||
if ( data->hasFormat( "application/tomahawk.playlist.id" ) &&
|
||||
|
Reference in New Issue
Block a user