1
0
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:
sudden6 2019-05-06 23:11:43 +02:00
parent b42ad83478
commit cef773c4f6
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -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)