mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Don't crash when dragging to the queue on osx
This commit is contained in:
@@ -384,7 +384,7 @@ PlaylistModel::dropMimeData( const QMimeData* data, Qt::DropAction action, int r
|
|||||||
// so check if the drag originated in this playlist to determine whether or not to copy
|
// so check if the drag originated in this playlist to determine whether or not to copy
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
if ( !data->hasFormat( "application/tomahawk.playlist.id" ) ||
|
if ( !data->hasFormat( "application/tomahawk.playlist.id" ) ||
|
||||||
data->data( "application/tomahawk.playlist.id" ) != m_playlist->guid() )
|
( !m_playlist.isNull() && data->data( "application/tomahawk.playlist.id" ) != m_playlist->guid() ) )
|
||||||
dj->setDropAction( DropJob::Append );
|
dj->setDropAction( DropJob::Append );
|
||||||
#else
|
#else
|
||||||
if ( action & Qt::CopyAction )
|
if ( action & Qt::CopyAction )
|
||||||
|
Reference in New Issue
Block a user