From 2ff45dd73c9c9e894d36f02f3d73ffb084e77520 Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Tue, 22 Apr 2014 16:38:43 +0200 Subject: [PATCH] Remove stray voice language dropdown when not applicable --- companion/src/apppreferencesdialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/companion/src/apppreferencesdialog.cpp b/companion/src/apppreferencesdialog.cpp index 362d84c9e..1e8ddd91a 100644 --- a/companion/src/apppreferencesdialog.cpp +++ b/companion/src/apppreferencesdialog.cpp @@ -392,10 +392,13 @@ FirmwareVariant AppPreferencesDialog::getFirmwareVariant() id += QString("-") + cb->text(); } } - if (! firmware->getCapability(MultiLangVoice)) { + if (voice) { if (ui->voiceCombo->count() && (voice || firmware->voice)) id += QString("-tts") + ui->voiceCombo->currentText(); } + else { + hideVoice(); + } if (ui->langCombo->count()) id += QString("-") + ui->langCombo->currentText();