fix for unchecked radio buttons
This commit is contained in:
parent
46a9825d07
commit
05e21fa2bc
1 changed files with 10 additions and 1 deletions
|
@ -313,7 +313,14 @@ void CClientSettingsDlg::UpdateSoundCardFrame()
|
||||||
const int iCurActualBufSize =
|
const int iCurActualBufSize =
|
||||||
pClient->GetSndCrdActualMonoBlSize();
|
pClient->GetSndCrdActualMonoBlSize();
|
||||||
|
|
||||||
// set radio buttons according to current value
|
// Set radio buttons according to current value (To make it possible
|
||||||
|
// to have all radio buttons unchecked, we have to disable the
|
||||||
|
// exclusive check for the radio button group. We require all radio
|
||||||
|
// buttons to be unchecked in the case when the sound card does not
|
||||||
|
// support any of the buffer sizes and therefore all radio buttons
|
||||||
|
// are disabeld and unchecked.).
|
||||||
|
SndCrdBufferDelayButtonGroup.setExclusive ( false );
|
||||||
|
|
||||||
rButBufferDelayPreferred->setChecked ( iCurActualBufSize ==
|
rButBufferDelayPreferred->setChecked ( iCurActualBufSize ==
|
||||||
SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_PREFERRED );
|
SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_PREFERRED );
|
||||||
|
|
||||||
|
@ -323,6 +330,8 @@ void CClientSettingsDlg::UpdateSoundCardFrame()
|
||||||
rButBufferDelaySafe->setChecked ( iCurActualBufSize ==
|
rButBufferDelaySafe->setChecked ( iCurActualBufSize ==
|
||||||
SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_SAFE );
|
SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_SAFE );
|
||||||
|
|
||||||
|
SndCrdBufferDelayButtonGroup.setExclusive ( true );
|
||||||
|
|
||||||
// disable radio buttons which are not supported by audio interface
|
// disable radio buttons which are not supported by audio interface
|
||||||
rButBufferDelayPreferred->setEnabled (
|
rButBufferDelayPreferred->setEnabled (
|
||||||
pClient->GetFraSiFactPrefSupported() );
|
pClient->GetFraSiFactPrefSupported() );
|
||||||
|
|
Loading…
Reference in a new issue