1
0
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:
Leo Franchi 2011-09-22 17:44:24 -04:00
parent 1cc1ba2b7a
commit d3ce2162ca

View File

@ -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" ) &&