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 @@ * \/ \/ \/ \/ \/ * * Copyright (C) 2007 by Dominik Wenger - * $Id: talkfile.cpp 15212 2007-10-19 21:49:07Z domonoky $ + * $Id: encoders.cpp 15212 2007-10-19 21:49:07Z domonoky $ * * All files in this archive are subject to the GNU General Public License. * See the file COPYING in the source tree root for full license agreement. @@ -33,6 +33,9 @@ void initEncoderList() // function to get a specific encoder EncBase* getEncoder(QString encname) { + // init list if its empty + if(encoderList.count() == 0) initEncoderList(); + QString encoder = encoderList.key(encname); // check cache @@ -59,6 +62,9 @@ EncBase* getEncoder(QString encname) // get the list of encoders, nice names QStringList getEncoderList() { + // init list if its empty + if(encoderList.count() == 0) initEncoderList(); + QStringList encList; QMapIterator<QString, QString> i(encoderList); while (i.hasNext()) { |