trim whitespace from TTS error string before displaying it.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17800 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-06-25 22:25:52 +00:00
parent 19e5814ae2
commit 37f37394c3

View file

@ -37,7 +37,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger)
QString errStr;
if(!m_tts->start(&errStr))
{
m_logger->addItem(errStr,LOGERROR);
m_logger->addItem(errStr.trimmed(),LOGERROR);
m_logger->addItem(tr("Init of TTS engine failed"),LOGERROR);
m_logger->abort();
return false;