added more information on error message
This commit is contained in:
parent
134b60c5cd
commit
e9820ddcb0
2 changed files with 599 additions and 594 deletions
|
@ -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() );
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue