rbutil: Don't try to install voice file if it's not available.

Change-Id: I42f70d6cf76298216bb626fd0fe760c0ce0a9835
This commit is contained in:
Dominik Riebeling 2020-11-21 22:10:57 +01:00
parent 0d2257d1f7
commit 1a3d12ceea

View file

@ -506,7 +506,7 @@ void SelectiveInstallWidget::installFonts(void)
void SelectiveInstallWidget::installVoicefile(void) void SelectiveInstallWidget::installVoicefile(void)
{ {
if(ui.voiceCheckbox->isChecked()) { if(ui.voiceCheckbox->isChecked() && ui.voiceCheckbox->isEnabled()) {
LOG_INFO() << "installing Voice file"; LOG_INFO() << "installing Voice file";
QString lang = ui.voiceCombobox->currentData().toString(); QString lang = ui.voiceCombobox->currentData().toString();