diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2007-12-15 13:13:57 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2007-12-15 13:13:57 +0000 |
commit | bebddd42c265bf63845f42bb29f48de5ed263f69 (patch) | |
tree | b5dbb6e711d4d71034c4ee19ddfa7e0af043971b /rbutil/rbutilqt/encoders.cpp | |
parent | 1e489e53b8d0807fc52423ae7453d4b1d047d370 (diff) | |
download | rockbox-bebddd42c265bf63845f42bb29f48de5ed263f69.tar.gz rockbox-bebddd42c265bf63845f42bb29f48de5ed263f69.zip |
rbutil: reworked configuration of TTS engines to the new Style.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15932 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/encoders.cpp')
-rw-r--r-- | rbutil/rbutilqt/encoders.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/encoders.cpp b/rbutil/rbutilqt/encoders.cpp index 4f25f813dd..54fc5ad201 100644 --- a/rbutil/rbutilqt/encoders.cpp +++ b/rbutil/rbutilqt/encoders.cpp | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * | 8 | * |
9 | * Copyright (C) 2007 by Dominik Wenger | 9 | * Copyright (C) 2007 by Dominik Wenger |
10 | * $Id: talkfile.cpp 15212 2007-10-19 21:49:07Z domonoky $ | 10 | * $Id: encoders.cpp 15212 2007-10-19 21:49:07Z domonoky $ |
11 | * | 11 | * |
12 | * All files in this archive are subject to the GNU General Public License. | 12 | * All files in this archive are subject to the GNU General Public License. |
13 | * See the file COPYING in the source tree root for full license agreement. | 13 | * See the file COPYING in the source tree root for full license agreement. |
@@ -33,6 +33,9 @@ void initEncoderList() | |||
33 | // function to get a specific encoder | 33 | // function to get a specific encoder |
34 | EncBase* getEncoder(QString encname) | 34 | EncBase* getEncoder(QString encname) |
35 | { | 35 | { |
36 | // init list if its empty | ||
37 | if(encoderList.count() == 0) initEncoderList(); | ||
38 | |||
36 | QString encoder = encoderList.key(encname); | 39 | QString encoder = encoderList.key(encname); |
37 | 40 | ||
38 | // check cache | 41 | // check cache |
@@ -59,6 +62,9 @@ EncBase* getEncoder(QString encname) | |||
59 | // get the list of encoders, nice names | 62 | // get the list of encoders, nice names |
60 | QStringList getEncoderList() | 63 | QStringList getEncoderList() |
61 | { | 64 | { |
65 | // init list if its empty | ||
66 | if(encoderList.count() == 0) initEncoderList(); | ||
67 | |||
62 | QStringList encList; | 68 | QStringList encList; |
63 | QMapIterator<QString, QString> i(encoderList); | 69 | QMapIterator<QString, QString> i(encoderList); |
64 | while (i.hasNext()) { | 70 | while (i.hasNext()) { |