mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Use liblastfm NAC in infosystemworker too, if available
This commit is contained in:
@@ -27,6 +27,8 @@
|
|||||||
#include "infoplugins/musixmatchplugin.h"
|
#include "infoplugins/musixmatchplugin.h"
|
||||||
#include "infoplugins/lastfmplugin.h"
|
#include "infoplugins/lastfmplugin.h"
|
||||||
|
|
||||||
|
#include "lastfm/NetworkAccessManager"
|
||||||
|
|
||||||
namespace Tomahawk
|
namespace Tomahawk
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -165,7 +167,13 @@ void
|
|||||||
InfoSystemWorker::newNam()
|
InfoSystemWorker::newNam()
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO;
|
qDebug() << Q_FUNC_INFO;
|
||||||
QNetworkAccessManager *newNam = new QNetworkAccessManager();
|
|
||||||
|
QNetworkAccessManager* newNam;
|
||||||
|
#ifdef LIBLASTFM_FOUND
|
||||||
|
newNam = new lastfm::NetworkAccessManager( this );
|
||||||
|
#else
|
||||||
|
newNam = new QNetworkAccessManager( this );
|
||||||
|
#endif
|
||||||
if ( m_nam )
|
if ( m_nam )
|
||||||
{
|
{
|
||||||
delete m_nam;
|
delete m_nam;
|
||||||
|
Reference in New Issue
Block a user