1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-18 23:09:42 +01:00

* Unbreak headless.

This commit is contained in:
Christian Muehlhaeuser 2012-02-23 03:30:22 +01:00
parent 79d8b081d7
commit 6b51872c3e

View File

@ -18,6 +18,8 @@
#include "audioengine.h"
#include "config.h"
#include <QtCore/QUrl>
#include <QtNetwork/QNetworkReply>
@ -328,6 +330,7 @@ AudioEngine::sendWaitingNotificationSlot() const
void
AudioEngine::sendNowPlayingNotification()
{
#ifndef ENABLE_HEADLESS
if ( m_currentTrack->album().isNull() || m_currentTrack->album()->infoLoaded() )
onNowPlayingInfoReady();
else
@ -335,6 +338,7 @@ AudioEngine::sendNowPlayingNotification()
connect( m_currentTrack->album().data(), SIGNAL( updated() ), SLOT( onNowPlayingInfoReady() ), Qt::UniqueConnection );
m_currentTrack->album()->cover( QSize( 0, 0 ) );
}
#endif
}