summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/talkfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/talkfile.cpp')
-rw-r--r--rbutil/rbutilqt/base/talkfile.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/rbutil/rbutilqt/base/talkfile.cpp b/rbutil/rbutilqt/base/talkfile.cpp
index 1b1dd934ed..cef53c852b 100644
--- a/rbutil/rbutilqt/base/talkfile.cpp
+++ b/rbutil/rbutilqt/base/talkfile.cpp
@@ -49,19 +49,17 @@ bool TalkFileCreator::createTalkFiles()
QCoreApplication::processEvents();
// generate entries
+ TalkGenerator generator(this);
+ // no string corrections yet: do not set language for TalkGenerator.
+ connect(&generator, &TalkGenerator::done, this, &TalkFileCreator::done);
+ connect(&generator, &TalkGenerator::logItem, this, &TalkFileCreator::logItem);
+ connect(&generator, &TalkGenerator::logProgress, this, &TalkFileCreator::logProgress);
+ connect(this, &TalkFileCreator::aborted, &generator, &TalkGenerator::abort);
+
+ if(generator.process(&m_talkList) == TalkGenerator::eERROR)
{
- TalkGenerator generator(this);
- // no string corrections yet: do not set language for TalkGenerator.
- connect(&generator,SIGNAL(done(bool)),this,SIGNAL(done(bool)));
- connect(&generator,SIGNAL(logItem(QString,int)),this,SIGNAL(logItem(QString,int)));
- connect(&generator,SIGNAL(logProgress(int,int)),this,SIGNAL(logProgress(int,int)));
- connect(this,SIGNAL(aborted()),&generator,SLOT(abort()));
-
- if(generator.process(&m_talkList) == TalkGenerator::eERROR)
- {
- doAbort();
- return false;
- }
+ doAbort();
+ return false;
}
// Copying talk files