From 6b51872c3e21616261f3cad23d5fa98d793465b3 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 23 Feb 2012 03:30:22 +0100 Subject: [PATCH] * Unbreak headless. --- src/libtomahawk/audio/audioengine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libtomahawk/audio/audioengine.cpp b/src/libtomahawk/audio/audioengine.cpp index 256b8603f..fbd6c7cd7 100644 --- a/src/libtomahawk/audio/audioengine.cpp +++ b/src/libtomahawk/audio/audioengine.cpp @@ -18,6 +18,8 @@ #include "audioengine.h" +#include "config.h" + #include #include @@ -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 }