mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01: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:
parent
1cc1ba2b7a
commit
d3ce2162ca
@ -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" ) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user