diff options
Diffstat (limited to 'rbutil/rbutilqt/base/talkfile.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/talkfile.cpp | 22 |
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() | |||
49 | QCoreApplication::processEvents(); | 49 | QCoreApplication::processEvents(); |
50 | 50 | ||
51 | // generate entries | 51 | // generate entries |
52 | TalkGenerator generator(this); | ||
53 | // no string corrections yet: do not set language for TalkGenerator. | ||
54 | connect(&generator, &TalkGenerator::done, this, &TalkFileCreator::done); | ||
55 | connect(&generator, &TalkGenerator::logItem, this, &TalkFileCreator::logItem); | ||
56 | connect(&generator, &TalkGenerator::logProgress, this, &TalkFileCreator::logProgress); | ||
57 | connect(this, &TalkFileCreator::aborted, &generator, &TalkGenerator::abort); | ||
58 | |||
59 | if(generator.process(&m_talkList) == TalkGenerator::eERROR) | ||
52 | { | 60 | { |
53 | TalkGenerator generator(this); | 61 | doAbort(); |
54 | // no string corrections yet: do not set language for TalkGenerator. | 62 | return false; |
55 | connect(&generator,SIGNAL(done(bool)),this,SIGNAL(done(bool))); | ||
56 | connect(&generator,SIGNAL(logItem(QString,int)),this,SIGNAL(logItem(QString,int))); | ||
57 | connect(&generator,SIGNAL(logProgress(int,int)),this,SIGNAL(logProgress(int,int))); | ||
58 | connect(this,SIGNAL(aborted()),&generator,SLOT(abort())); | ||
59 | |||
60 | if(generator.process(&m_talkList) == TalkGenerator::eERROR) | ||
61 | { | ||
62 | doAbort(); | ||
63 | return false; | ||
64 | } | ||
65 | } | 63 | } |
66 | 64 | ||
67 | // Copying talk files | 65 | // Copying talk files |