diff --git a/fulltextsearch.cc b/fulltextsearch.cc index 48917c37..0ccaab6e 100644 --- a/fulltextsearch.cc +++ b/fulltextsearch.cc @@ -146,6 +146,9 @@ FullTextSearchDialog::FullTextSearchDialog( QWidget * parent, ui.setupUi( this ); ftsThreadPool.setExpiryTimeout( -1 ); + int threads = ftsThreadPool.maxThreadCount(); + if( threads > 1 ) + ftsThreadPool.setMaxThreadCount( threads - 1 ); setAttribute( Qt::WA_DeleteOnClose, false ); setWindowFlags( windowFlags() & ~Qt::WindowContextHelpButtonHint );