diff --git a/src/libtomahawk/dropjob.cpp b/src/libtomahawk/dropjob.cpp index 844c355dc..b9e9b79dd 100644 --- a/src/libtomahawk/dropjob.cpp +++ b/src/libtomahawk/dropjob.cpp @@ -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 ) diff --git a/src/libtomahawk/utils/spotifyparser.h b/src/libtomahawk/utils/spotifyparser.h index de3e8a4ca..dee587b97 100644 --- a/src/libtomahawk/utils/spotifyparser.h +++ b/src/libtomahawk/utils/spotifyparser.h @@ -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 );