mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Fix a possible crash when entering the talkfile window without correct settings. Thanks to Nico_P.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14553 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
720610bc0e
commit
7db65ab5a7
1 changed files with 3 additions and 3 deletions
|
|
@ -132,14 +132,14 @@ void InstallTalkWindow::setDeviceSettings(QSettings *dev)
|
||||||
qDebug() << "Install::setDeviceSettings:" << devices;
|
qDebug() << "Install::setDeviceSettings:" << devices;
|
||||||
|
|
||||||
QString profile;
|
QString profile;
|
||||||
|
|
||||||
profile = userSettings->value("ttspreset").toString();
|
profile = userSettings->value("ttspreset", "none").toString();
|
||||||
devices->beginGroup("tts");
|
devices->beginGroup("tts");
|
||||||
ui.labelTtsProfile->setText(tr("TTS Profile: <b>%1</b>")
|
ui.labelTtsProfile->setText(tr("TTS Profile: <b>%1</b>")
|
||||||
.arg(devices->value(profile, tr("Invalid TTS profile!")).toString()));
|
.arg(devices->value(profile, tr("Invalid TTS profile!")).toString()));
|
||||||
qDebug() << profile;
|
qDebug() << profile;
|
||||||
devices->endGroup();
|
devices->endGroup();
|
||||||
profile = userSettings->value("encpreset").toString();
|
profile = userSettings->value("encpreset", "none").toString();
|
||||||
devices->beginGroup("encoders");
|
devices->beginGroup("encoders");
|
||||||
ui.labelEncProfile->setText(tr("Encoder Profile: <b>%1</b>")
|
ui.labelEncProfile->setText(tr("Encoder Profile: <b>%1</b>")
|
||||||
.arg(devices->value(profile, tr("Invalid encoder profile!")).toString()));
|
.arg(devices->value(profile, tr("Invalid encoder profile!")).toString()));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue