Remove stray voice language dropdown when not applicable

This commit is contained in:
Andre Bernet
2014-04-22 16:38:43 +02:00
parent 7bb54201cb
commit 2ff45dd73c
+4 -1
View File
@@ -392,10 +392,13 @@ FirmwareVariant AppPreferencesDialog::getFirmwareVariant()
id += QString("-") + cb->text(); id += QString("-") + cb->text();
} }
} }
if (! firmware->getCapability(MultiLangVoice)) { if (voice) {
if (ui->voiceCombo->count() && (voice || firmware->voice)) if (ui->voiceCombo->count() && (voice || firmware->voice))
id += QString("-tts") + ui->voiceCombo->currentText(); id += QString("-tts") + ui->voiceCombo->currentText();
} }
else {
hideVoice();
}
if (ui->langCombo->count()) if (ui->langCombo->count())
id += QString("-") + ui->langCombo->currentText(); id += QString("-") + ui->langCombo->currentText();