added more information on error message

This commit is contained in:
Volker Fischer 2009-12-01 08:52:06 +00:00
parent 134b60c5cd
commit e9820ddcb0
2 changed files with 599 additions and 594 deletions

View File

@ -373,9 +373,10 @@ void CClientSettingsDlg::OnSoundCrdSelection ( int iSndDevIdx )
if ( !strError.isEmpty() )
{
QMessageBox::critical ( this, APP_NAME,
QString ( "The selected audio device could not be used because "
"of the following error: " ) + strError +
QString ( " The previous driver will be selected." ), "Ok", 0 );
QString ( tr ( "The selected audio device could not be used "
"because of the following error: " ) ) + strError +
QString ( tr ( " The previous driver will be selected." ) ),
"Ok", 0 );
// recover old selection
cbSoundcard->setCurrentIndex ( pClient->GetSndCrdDev() );

View File

@ -88,9 +88,13 @@ std::string CSound::SetDev ( const int iNewDev )
// have changed so that they are not compatible to our
// software anymore
QMessageBox::critical (
0, APP_NAME, "The audio driver properties have changed to "
"a state which is incompatible to this software. "
"Please restart the software.", "Close", 0 );
0, APP_NAME, QString ( tr ( "The audio driver properties "
"have changed to a state which is incompatible to this "
"software. The selected audio device could not be used "
"because of the following error: <b>" ) ) +
strErrorMessage.c_str() +
QString ( tr ( "</b><br><br>Please restart the software." ) ),
"Close", 0 );
_exit ( 0 );
}