diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-12-16 10:20:56 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-12-16 10:20:56 +0000 |
commit | 651179ca13a0200117104caa33a62f0dc43aae39 (patch) | |
tree | d6e7767a0b14706ec9fa9d3f32a826b6a55d9e5b /rbutil | |
parent | d32b31aabbd9aed035ad38a79878cdb5c697c0c2 (diff) |
add some missing abort button changes and call processEvents a bit more often
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15943 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/rbutilqt/talkfile.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/talkfile.cpp b/rbutil/rbutilqt/talkfile.cpp index 6f70111aff..c602716f67 100644 --- a/rbutil/rbutilqt/talkfile.cpp +++ b/rbutil/rbutilqt/talkfile.cpp @@ -37,6 +37,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger) if(!m_tts->start()) { m_logger->addItem("Init of TTS engine failed",LOGERROR); + m_logger->abort(); return false; } @@ -47,6 +48,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger) if(!m_enc->start()) { m_logger->addItem("Init of Encoder engine failed",LOGERROR); + m_logger->abort(); m_tts->stop(); return false; } @@ -64,6 +66,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger) if(m_abort) { m_logger->addItem("Talk file creation aborted",LOGERROR); + m_logger->abort(); m_tts->stop(); return false; } @@ -133,6 +136,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger) m_enc->stop(); return false; } + QApplication::processEvents(); } m_logger->addItem("Encoding of " + toSpeak,LOGINFO); if(!m_enc->encode(wavfilename,filename)) @@ -143,6 +147,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger) m_enc->stop(); return false; } + QApplication::processEvents(); } //! remove the intermedia wav file, if requested |