diff options
Diffstat (limited to 'rbutil/rbutilqt/talkfile.cpp')
-rw-r--r-- | rbutil/rbutilqt/talkfile.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/talkfile.cpp b/rbutil/rbutilqt/talkfile.cpp index 5b484079f9..3b99b2c52c 100644 --- a/rbutil/rbutilqt/talkfile.cpp +++ b/rbutil/rbutilqt/talkfile.cpp | |||
@@ -96,11 +96,23 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger) | |||
96 | } | 96 | } |
97 | if(fileInf.isDir()) // if it is a dir | 97 | if(fileInf.isDir()) // if it is a dir |
98 | { | 98 | { |
99 | // skip entry if folder talking isnt enabled | ||
100 | if(m_talkFolders == false) | ||
101 | { | ||
102 | it.next(); | ||
103 | continue; | ||
104 | } | ||
99 | toSpeak = fileInf.fileName(); | 105 | toSpeak = fileInf.fileName(); |
100 | filename = fileInf.absolutePath() + "/_dirname.talk"; | 106 | filename = fileInf.absolutePath() + "/_dirname.talk"; |
101 | } | 107 | } |
102 | else // if it is a file | 108 | else // if it is a file |
103 | { | 109 | { |
110 | // skip entry if file talking isnt enabled | ||
111 | if(m_talkFiles == false) | ||
112 | { | ||
113 | it.next(); | ||
114 | continue; | ||
115 | } | ||
104 | if(m_stripExtensions) | 116 | if(m_stripExtensions) |
105 | toSpeak = fileInf.baseName(); | 117 | toSpeak = fileInf.baseName(); |
106 | else | 118 | else |
@@ -181,7 +193,7 @@ bool TalkFileCreator::encode(QString input,QString output) | |||
181 | } | 193 | } |
182 | 194 | ||
183 | bool TTSSapi::start() | 195 | bool TTSSapi::start() |
184 | { | 196 | { |
185 | QFileInfo tts(m_TTSexec); | 197 | QFileInfo tts(m_TTSexec); |
186 | if(!tts.exists()) | 198 | if(!tts.exists()) |
187 | return false; | 199 | return false; |
@@ -244,4 +256,4 @@ bool TTSExes::voice(QString text,QString wavfile) | |||
244 | QProcess::execute(execstring); | 256 | QProcess::execute(execstring); |
245 | return true; | 257 | return true; |
246 | 258 | ||
247 | } \ No newline at end of file | 259 | } |