mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 22:56:42 +02:00
* Unbreak headless.
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
#include "audioengine.h"
|
#include "audioengine.h"
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <QtCore/QUrl>
|
#include <QtCore/QUrl>
|
||||||
#include <QtNetwork/QNetworkReply>
|
#include <QtNetwork/QNetworkReply>
|
||||||
|
|
||||||
@@ -328,6 +330,7 @@ AudioEngine::sendWaitingNotificationSlot() const
|
|||||||
void
|
void
|
||||||
AudioEngine::sendNowPlayingNotification()
|
AudioEngine::sendNowPlayingNotification()
|
||||||
{
|
{
|
||||||
|
#ifndef ENABLE_HEADLESS
|
||||||
if ( m_currentTrack->album().isNull() || m_currentTrack->album()->infoLoaded() )
|
if ( m_currentTrack->album().isNull() || m_currentTrack->album()->infoLoaded() )
|
||||||
onNowPlayingInfoReady();
|
onNowPlayingInfoReady();
|
||||||
else
|
else
|
||||||
@@ -335,6 +338,7 @@ AudioEngine::sendNowPlayingNotification()
|
|||||||
connect( m_currentTrack->album().data(), SIGNAL( updated() ), SLOT( onNowPlayingInfoReady() ), Qt::UniqueConnection );
|
connect( m_currentTrack->album().data(), SIGNAL( updated() ), SLOT( onNowPlayingInfoReady() ), Qt::UniqueConnection );
|
||||||
m_currentTrack->album()->cover( QSize( 0, 0 ) );
|
m_currentTrack->album()->cover( QSize( 0, 0 ) );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user