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() )
|
if ( !strError.isEmpty() )
|
||||||
{
|
{
|
||||||
QMessageBox::critical ( this, APP_NAME,
|
QMessageBox::critical ( this, APP_NAME,
|
||||||
QString ( "The selected audio device could not be used because "
|
QString ( tr ( "The selected audio device could not be used "
|
||||||
"of the following error: " ) + strError +
|
"because of the following error: " ) ) + strError +
|
||||||
QString ( " The previous driver will be selected." ), "Ok", 0 );
|
QString ( tr ( " The previous driver will be selected." ) ),
|
||||||
|
"Ok", 0 );
|
||||||
|
|
||||||
// recover old selection
|
// recover old selection
|
||||||
cbSoundcard->setCurrentIndex ( pClient->GetSndCrdDev() );
|
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
|
// have changed so that they are not compatible to our
|
||||||
// software anymore
|
// software anymore
|
||||||
QMessageBox::critical (
|
QMessageBox::critical (
|
||||||
0, APP_NAME, "The audio driver properties have changed to "
|
0, APP_NAME, QString ( tr ( "The audio driver properties "
|
||||||
"a state which is incompatible to this software. "
|
"have changed to a state which is incompatible to this "
|
||||||
"Please restart the software.", "Close", 0 );
|
"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 );
|
_exit ( 0 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue