mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Select just-created spotify playlist when dragged in
This commit is contained in:
@@ -26,12 +26,13 @@
|
|||||||
#include "dropjob.h"
|
#include "dropjob.h"
|
||||||
#include "jobview/JobStatusView.h"
|
#include "jobview/JobStatusView.h"
|
||||||
#include "jobview/JobStatusModel.h"
|
#include "jobview/JobStatusModel.h"
|
||||||
|
#include "dropjobnotifier.h"
|
||||||
|
#include "viewmanager.h"
|
||||||
|
|
||||||
#include <qjson/parser.h>
|
#include <qjson/parser.h>
|
||||||
|
|
||||||
#include <QtNetwork/QNetworkAccessManager>
|
#include <QtNetwork/QNetworkAccessManager>
|
||||||
#include <QtNetwork/QNetworkReply>
|
#include <QtNetwork/QNetworkReply>
|
||||||
#include "dropjobnotifier.h"
|
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
@@ -298,6 +299,7 @@ SpotifyParser::checkBrowseFinished()
|
|||||||
m_browseJob->setFinished();
|
m_browseJob->setFinished();
|
||||||
|
|
||||||
if( m_createNewPlaylist && !m_tracks.isEmpty() )
|
if( m_createNewPlaylist && !m_tracks.isEmpty() )
|
||||||
|
{
|
||||||
m_playlist = Playlist::create( SourceList::instance()->getLocal(),
|
m_playlist = Playlist::create( SourceList::instance()->getLocal(),
|
||||||
uuid(),
|
uuid(),
|
||||||
m_title,
|
m_title,
|
||||||
@@ -305,6 +307,8 @@ SpotifyParser::checkBrowseFinished()
|
|||||||
m_creator,
|
m_creator,
|
||||||
false,
|
false,
|
||||||
m_tracks );
|
m_tracks );
|
||||||
|
ViewManager::instance()->show( m_playlist );
|
||||||
|
}
|
||||||
|
|
||||||
else if ( m_single && !m_tracks.isEmpty() )
|
else if ( m_single && !m_tracks.isEmpty() )
|
||||||
emit track( m_tracks.first() );
|
emit track( m_tracks.first() );
|
||||||
|
Reference in New Issue
Block a user