mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
clear dictionary outside of the loop
This commit is contained in:
parent
c743a31dca
commit
7adfc523a2
|
@ -430,6 +430,7 @@ ArticleRequest::ArticleRequest(
|
|||
memcpy( &data.front(), header.data(), header.size() );
|
||||
|
||||
// Accumulate main forms
|
||||
emit GlobalBroadcaster::instance()->dictionaryClear( ActiveDictIds{word} );
|
||||
|
||||
for( unsigned x = 0; x < activeDicts.size(); ++x )
|
||||
{
|
||||
|
@ -449,8 +450,6 @@ void ArticleRequest::altSearchFinished()
|
|||
if ( altsDone )
|
||||
return;
|
||||
|
||||
emit GlobalBroadcaster::instance()->dictionaryClear( ActiveDictIds{word} );
|
||||
|
||||
// Check every request for finishing
|
||||
for( list< sptr< Dictionary::WordSearchRequest > >::iterator i =
|
||||
altSearches.begin(); i != altSearches.end(); )
|
||||
|
|
Loading…
Reference in a new issue