mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 09:49:42 +01:00
Show audio engine error on console even for headless builds
This commit is contained in:
parent
6eec99e5c7
commit
034515cc7e
@ -959,13 +959,16 @@ TomahawkWindow::onXSPFError( XSPFLoader::XSPFErrorCode error )
|
||||
void
|
||||
TomahawkWindow::onAudioEngineError( AudioEngine::AudioErrorCode /* error */ )
|
||||
{
|
||||
#ifndef ENABLE_HEADLESS
|
||||
QString msg;
|
||||
#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." );
|
||||
#else
|
||||
msg = tr( "Sorry, there is a problem accessing your audio device or the desired track, current track will be skipped." );
|
||||
#endif
|
||||
|
||||
tLog() << msg;
|
||||
|
||||
#ifndef ENABLE_HEADLESS
|
||||
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( msg, 15 ) );
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user