diff --git a/btreeidx.cc b/btreeidx.cc index 62c23604..bbe3b62e 100644 --- a/btreeidx.cc +++ b/btreeidx.cc @@ -334,7 +334,7 @@ void BtreeWordSearchRequest::run() } } - if( isCancelled ) + if( Qt4x5::AtomicInt::loadAcquire( isCancelled ) ) break; if ( matches.size() >= maxResults )