mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +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;
|
filtering = true;
|
||||||
filterWords.clear();
|
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 );
|
connect( sr.get(), &Dictionary::Request::finished, this, &HeadwordListModel::requestFinished, Qt::QueuedConnection );
|
||||||
queuedRequests.push_back( sr );
|
queuedRequests.push_back( sr );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue