mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 01:09:42 +01:00
Don't crash when dragging to the queue on osx
This commit is contained in:
parent
ecf70e7b86
commit
3dbb4fad41
@ -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
|
||||
#ifdef Q_WS_MAC
|
||||
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 );
|
||||
#else
|
||||
if ( action & Qt::CopyAction )
|
||||
|
Loading…
x
Reference in New Issue
Block a user