mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(AVForm): don't load gain when device not ready
This fixes a problem when the audio backend is not yet ready, but we try to access it's volume.
This commit is contained in:
parent
b42ad83478
commit
cef773c4f6
|
@ -571,8 +571,6 @@ void AVForm::on_outDevCombobox_currentIndexChanged(int deviceIndex)
|
|||
}
|
||||
|
||||
playbackSlider->setEnabled(outputEnabled);
|
||||
playbackSlider->setSliderPosition(
|
||||
getStepsFromValue(audio->outputVolume(), audio->minOutputVolume(), audio->maxOutputVolume()));
|
||||
}
|
||||
|
||||
void AVForm::on_playbackSlider_valueChanged(int sliderSteps)
|
||||
|
|
Loading…
Reference in New Issue
Block a user