mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
Fix appending spotify tracks
This commit is contained in:
parent
094e8653ff
commit
d6bf6744d8
@ -413,6 +413,7 @@ DropJob::handleSpotifyUrl( const QString& url )
|
||||
|
||||
tDebug() << "Got a spotify browse uri in dropjob!" << browseUri;
|
||||
SpotifyParser* spot = new SpotifyParser( browseUri, dropAction() == Create, this );
|
||||
spot->setSingleMode( false );
|
||||
|
||||
/// This currently supports draging and dropping a spotify playlist and artist
|
||||
if ( dropAction() == Append )
|
||||
|
@ -52,6 +52,10 @@ public:
|
||||
explicit SpotifyParser( const QStringList& trackUrls, bool createNewPlaylist = false, QObject* parent = 0 );
|
||||
virtual ~SpotifyParser();
|
||||
|
||||
// if true, emits track(), if false, emits tracks().
|
||||
// only matters if you're using the QStrin constructor and explicityl dont' want
|
||||
// the single track signal
|
||||
void setSingleMode( bool single ) { m_single = single; }
|
||||
|
||||
signals:
|
||||
void track( const Tomahawk::query_ptr& track );
|
||||
|
Loading…
x
Reference in New Issue
Block a user