1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix avform mic slider enabling

This commit is contained in:
tux3 2016-01-22 00:07:31 +01:00
parent ce2f8fd1d5
commit f57bf331d6
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -339,7 +339,7 @@ void AVForm::onInDevChanged(QString deviceDescriptor)
Settings::getInstance().setInDev(deviceDescriptor);
Audio& audio = Audio::getInstance();
audio.reinitInput(deviceDescriptor);
bodyUI->microphoneSlider->setEnabled(audio.isInputReady());
bodyUI->microphoneSlider->setEnabled(bodyUI->inDevCombobox->currentIndex() != 0);
bodyUI->microphoneSlider->setSliderPosition(audio.inputVolume() * 100.f);
}