summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/installtalkwindow.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-31 13:00:50 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-31 13:00:50 +0000
commit7db65ab5a7465ff58bfd2e787507983f0de84573 (patch)
tree3642be25aa9c97c637487f76daf2f562e0f9e1ca /rbutil/rbutilqt/installtalkwindow.cpp
parent720610bc0eb8b4fcb1044bfe73d22618d26b582e (diff)
downloadrockbox-7db65ab5a7465ff58bfd2e787507983f0de84573.tar.gz
rockbox-7db65ab5a7465ff58bfd2e787507983f0de84573.tar.bz2
rockbox-7db65ab5a7465ff58bfd2e787507983f0de84573.zip
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
Diffstat (limited to 'rbutil/rbutilqt/installtalkwindow.cpp')
-rw-r--r--rbutil/rbutilqt/installtalkwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/installtalkwindow.cpp b/rbutil/rbutilqt/installtalkwindow.cpp
index 60a1a310c3..a1d825a247 100644
--- a/rbutil/rbutilqt/installtalkwindow.cpp
+++ b/rbutil/rbutilqt/installtalkwindow.cpp
@@ -132,14 +132,14 @@ void InstallTalkWindow::setDeviceSettings(QSettings *dev)
qDebug() << "Install::setDeviceSettings:" << devices;
QString profile;
-
- profile = userSettings->value("ttspreset").toString();
+
+ profile = userSettings->value("ttspreset", "none").toString();
devices->beginGroup("tts");
ui.labelTtsProfile->setText(tr("TTS Profile: <b>%1</b>")
.arg(devices->value(profile, tr("Invalid TTS profile!")).toString()));
qDebug() << profile;
devices->endGroup();
- profile = userSettings->value("encpreset").toString();
+ profile = userSettings->value("encpreset", "none").toString();
devices->beginGroup("encoders");
ui.labelEncProfile->setText(tr("Encoder Profile: <b>%1</b>")
.arg(devices->value(profile, tr("Invalid encoder profile!")).toString()));