summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/installtalkwindow.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-02-03 11:49:29 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-02-03 11:49:29 +0000
commitc5b8a7b45dc4c1f0c195d00280eaa9bee7cb4b80 (patch)
tree91d00898e1050efdc37ba4a5004ac0e9733ef2ab /rbutil/rbutilqt/installtalkwindow.cpp
parent5a38f3e9de56c780652a6a74c367987cbf8993f7 (diff)
downloadrockbox-c5b8a7b45dc4c1f0c195d00280eaa9bee7cb4b80.tar.gz
rockbox-c5b8a7b45dc4c1f0c195d00280eaa9bee7cb4b80.tar.bz2
rockbox-c5b8a7b45dc4c1f0c195d00280eaa9bee7cb4b80.zip
Redo my previous segfault fix in a better way.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16205 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/installtalkwindow.cpp')
-rw-r--r--rbutil/rbutilqt/installtalkwindow.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/installtalkwindow.cpp b/rbutil/rbutilqt/installtalkwindow.cpp
index dfe2a84c19..2fa69b7195 100644
--- a/rbutil/rbutilqt/installtalkwindow.cpp
+++ b/rbutil/rbutilqt/installtalkwindow.cpp
@@ -119,11 +119,8 @@ void InstallTalkWindow::setSettings(RbSettings* sett)
ui.labelTtsProfile->setText(tr("Selected TTS Engine: <b>%1</b>").arg("Invalid TTS configuration!"));
QString encoder = settings->curEncoder();
- // only proceed if encoder setting is set
- if(!encoder.isEmpty()) {
- // FIXME: getEncoder CAN return a NULL pointer. Additional error
- // checking is required or getEncoder should use the default engine
- EncBase* enc = getEncoder(encoder);
+ EncBase* enc = getEncoder(encoder);
+ if(enc != NULL) {
enc->setCfg(settings);
if(enc->configOk())
ui.labelEncProfile->setText(tr("Selected Encoder: <b>%1</b>").arg(encoder));