1
0
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:
Leo Franchi 2011-10-25 14:37:35 -04:00
parent ecf70e7b86
commit 3dbb4fad41

View File

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