Full-text search: Reduce max thread count

This commit is contained in:
Abs62 2022-09-07 17:35:52 +03:00
parent e333a03d7c
commit 3b2df81b3d

View file

@ -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 );