Drop empty voice strings when building list of strings.
Instead of skipping empty voice strings when trying to voice the list of strings drop them immediately when building the list of strings. Change-Id: Ib2627fb4b5061916cf04d67b6b78f457122ed2cd
This commit is contained in:
parent
76c74c4437
commit
fe756b65de
1 changed files with 7 additions and 1 deletions
|
@ -160,8 +160,14 @@ void VoiceFileCreator::downloadDone(bool error)
|
|||
QFile::copy(":/builtin/VOICE_PAUSE.wav",m_path + "/VOICE_PAUSE.wav");
|
||||
entry.wavfilename = m_path + "/VOICE_PAUSE.wav";
|
||||
entry.voiced = true;
|
||||
m_talkList.append(entry);
|
||||
}
|
||||
else if(entry.toSpeak.isEmpty()) {
|
||||
qDebug() << "[Voicefile] Empty voice string for ID" << id;
|
||||
}
|
||||
else {
|
||||
m_talkList.append(entry);
|
||||
}
|
||||
m_talkList.append(entry);
|
||||
idfound=false;
|
||||
voicefound=false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue