1
0

gui: mainwindow: Set default query limit to 1000

Este cometimento está contido em:
Albert S. 2022-06-05 14:04:42 +02:00
ascendente e5e43c8bfb
cometimento 52b296ff01

Ver ficheiro

@ -411,10 +411,20 @@ void MainWindow::lineEditReturnPressed()
if(addPathSearch)
{
LooqsQuery filesQuery = LooqsQuery::build(q, TokenType::FILTER_PATH_CONTAINS, false);
if(filesQuery.getLimit() == -1)
{
filesQuery.setLimit(1000);
}
results.append(searcher.search(filesQuery));
}
if(addContentSearch)
{
if(this->contentSearchQuery.getLimit() == -1)
{
this->contentSearchQuery.setLimit(1000);
}
results.append(searcher.search(this->contentSearchQuery));
}
return results;