mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
fix: filter headword return less than expected matched results.
This commit is contained in:
parent
0089420801
commit
101a673cf6
|
@ -41,7 +41,7 @@ void HeadwordListModel::setFilter( QRegularExpression reg )
|
|||
}
|
||||
filtering = true;
|
||||
filterWords.clear();
|
||||
auto sr = _dict->prefixMatch( gd::toWString( reg.pattern() ), 30 );
|
||||
auto sr = _dict->prefixMatch( gd::toWString( reg.pattern() ), 500 );
|
||||
connect( sr.get(), &Dictionary::Request::finished, this, &HeadwordListModel::requestFinished, Qt::QueuedConnection );
|
||||
queuedRequests.push_back( sr );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue