summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/voicefile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/voicefile.cpp')
-rw-r--r--rbutil/rbutilqt/voicefile.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/voicefile.cpp b/rbutil/rbutilqt/voicefile.cpp
index 42902b93d8..290c298c26 100644
--- a/rbutil/rbutilqt/voicefile.cpp
+++ b/rbutil/rbutilqt/voicefile.cpp
@@ -126,7 +126,7 @@ void VoiceFileCreator::downloadDone(bool error)
126 return; 126 return;
127 } 127 }
128 else m_logger->addItem(tr("Download finished."),LOGOK); 128 else m_logger->addItem(tr("Download finished."),LOGOK);
129 QApplication::processEvents(); 129 QCoreApplication::processEvents();
130 130
131 131
132 m_logger->setProgressMax(0); 132 m_logger->setProgressMax(0);
@@ -167,7 +167,7 @@ void VoiceFileCreator::downloadDone(bool error)
167 return; 167 return;
168 } 168 }
169 169
170 QApplication::processEvents(); 170 QCoreApplication::processEvents();
171 connect(m_logger,SIGNAL(aborted()),this,SLOT(abort())); 171 connect(m_logger,SIGNAL(aborted()),this,SLOT(abort()));
172 172
173 //read in downloaded file 173 //read in downloaded file
@@ -242,8 +242,8 @@ void VoiceFileCreator::downloadDone(bool error)
242 { 242 {
243 if(toSpeak == "") continue; 243 if(toSpeak == "") continue;
244 244
245 m_logger->addItem(tr("creating ")+toSpeak,LOGINFO); 245 m_logger->addItem(tr("creating ")+toSpeak,LOGINFO);
246 QApplication::processEvents(); 246 QCoreApplication::processEvents();
247 m_tts->voice(toSpeak,wavname); // generate wav 247 m_tts->voice(toSpeak,wavname); // generate wav
248 } 248 }
249 249
@@ -257,7 +257,7 @@ void VoiceFileCreator::downloadDone(bool error)
257 // remove the wav file 257 // remove the wav file
258 QFile::remove(wavname); 258 QFile::remove(wavname);
259 // remember the mp3 file for later removing 259 // remember the mp3 file for later removing
260 mp3files << encodedname; 260 mp3files << encodedname;
261 } 261 }
262 262
263 263