1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-08 23:26:40 +02:00

Show audio engine error on console even for headless builds

This commit is contained in:
Dominik Schmidt
2013-01-15 00:55:06 +01:00
parent 6eec99e5c7
commit 034515cc7e

View File

@@ -959,13 +959,16 @@ TomahawkWindow::onXSPFError( XSPFLoader::XSPFErrorCode error )
void void
TomahawkWindow::onAudioEngineError( AudioEngine::AudioErrorCode /* error */ ) TomahawkWindow::onAudioEngineError( AudioEngine::AudioErrorCode /* error */ )
{ {
#ifndef ENABLE_HEADLESS
QString msg; QString msg;
#ifdef Q_WS_X11 #ifdef Q_WS_X11
msg = tr( "Sorry, there is a problem accessing your audio device or the desired track, current track will be skipped. Make sure you have a suitable Phonon backend and required plugins installed." ); msg = tr( "Sorry, there is a problem accessing your audio device or the desired track, current track will be skipped. Make sure you have a suitable Phonon backend and required plugins installed." );
#else #else
msg = tr( "Sorry, there is a problem accessing your audio device or the desired track, current track will be skipped." ); msg = tr( "Sorry, there is a problem accessing your audio device or the desired track, current track will be skipped." );
#endif #endif
tLog() << msg;
#ifndef ENABLE_HEADLESS
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( msg, 15 ) ); JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( msg, 15 ) );
#endif #endif