mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
* Fixed moving tracks within a playlist.
This commit is contained in:
parent
381e89d3df
commit
cea780b85b
@ -39,6 +39,10 @@ DropJob::DropJob( QObject *parent )
|
||||
: QObject( parent )
|
||||
, m_queryCount( 0 )
|
||||
, m_dropAction( Default )
|
||||
, m_onlyLocal( false )
|
||||
, m_getWholeArtists( false )
|
||||
, m_getWholeAlbums( false )
|
||||
, m_top10( false )
|
||||
{
|
||||
}
|
||||
|
||||
@ -61,6 +65,7 @@ DropJob::mimeTypes()
|
||||
<< "application/tomahawk.metadata.album"
|
||||
<< "application/tomahawk.mixed"
|
||||
<< "text/plain";
|
||||
|
||||
return mimeTypes;
|
||||
}
|
||||
|
||||
|
@ -365,8 +365,10 @@ PlaylistModel::dropMimeData( const QMimeData* data, Qt::DropAction action, int r
|
||||
m_dropStorage.row = row;
|
||||
m_dropStorage.parent = QPersistentModelIndex( parent );
|
||||
m_dropStorage.action = action;
|
||||
DropJob *dj = new DropJob();
|
||||
dj->setDropAction( DropJob::Append );
|
||||
|
||||
DropJob* dj = new DropJob();
|
||||
if ( action & Qt::CopyAction )
|
||||
dj->setDropAction( DropJob::Append );
|
||||
|
||||
connect( dj, SIGNAL( tracks( QList< Tomahawk::query_ptr > ) ), this, SLOT( parsedDroppedTracks( QList< Tomahawk::query_ptr > ) ) );
|
||||
dj->tracksFromMimeData( data );
|
||||
|
Loading…
x
Reference in New Issue
Block a user