mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Merge pull request #851 from xiaoyifang/fix/slob-index-slow
fix: slob fullindex will freeze the preference dialog
This commit is contained in:
commit
f67f5aa228
|
@ -1098,6 +1098,8 @@ void SlobDictionary::sortArticlesOffsetsForFTS( QVector< uint32_t > & offsets, Q
|
|||
|
||||
qint32 entries = sf.getRefsCount();
|
||||
for ( qint32 i = 0; i < entries; i++ ) {
|
||||
if ( Utils::AtomicInt::loadAcquire( isCancelled ) )
|
||||
throw exUserAbort();
|
||||
if ( offsets.contains( sortedOffsets[ i ].second ) )
|
||||
newOffsets.append( sortedOffsets[ i ].second );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue