diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-08-30 22:20:11 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-08-30 22:20:11 +0000 |
commit | 87a8f41edf911a358c8d35e787470108874b109e (patch) | |
tree | 9967f23542b360b6148b82580f70babcd82f828f /rbutil | |
parent | a8aa84cf21ad8996c475d0039a3109f82a063328 (diff) |
TTS configuration: default to the first profile found.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14550 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index 53404ba4a2..5120e36c24 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp @@ -297,12 +297,14 @@ void Config::setDevices(QSettings *dev) int index; index = ui.comboTts->findData(userSettings->value("ttspreset").toString(), Qt::UserRole, Qt::MatchExactly); + if(index < 0) index = 0; ui.comboTts->setCurrentIndex(index); updateTtsOpts(index); ui.ttsExecutable->setText(userSettings->value("ttsbin").toString()); index = ui.comboEncoder->findData(userSettings->value("encpreset").toString(), Qt::UserRole, Qt::MatchExactly); + if(index < 0) index = 0; ui.comboEncoder->setCurrentIndex(index); updateEncOpts(index); ui.encoderExecutable->setText(userSettings->value("encbin").toString()); |