Vergelijk commits
2 Commits
052f169ef2
...
e8b89b77ab
Auteur | SHA1 | Datum | |
---|---|---|---|
e8b89b77ab | |||
77f5c7e39d |
@ -1,4 +1,9 @@
|
||||
# looqs: Release notes
|
||||
## 2022-07-30 - v0.5.1
|
||||
|
||||
CHANGES:
|
||||
- gui: Fix regression in implicit paths queries introduced in previous version
|
||||
|
||||
## 2022-07-29 - v0.5
|
||||
This release features multiple fixes and enhancements.
|
||||
|
||||
|
@ -29,7 +29,7 @@ There is no need to write the long form of filters. There are also booleans avai
|
||||
The screenshots in this section may occasionally be slightly outdated, but they are usually recent enough to get an overall impression of the current state of the GUI.
|
||||
|
||||
## Current status
|
||||
Latest version: 2022-07-29, v0.5
|
||||
Latest version: 2022-07-30, v0.5.1
|
||||
|
||||
Please see [Changelog](CHANGELOG.md) for a human readable list of changes.
|
||||
|
||||
|
@ -508,7 +508,6 @@ void MainWindow::lineEditReturnPressed()
|
||||
LooqsQuery pathsQuery = tmpQuery;
|
||||
|
||||
this->contentSearchQuery = tmpQuery;
|
||||
this->contentSearchQuery.setTokens({});
|
||||
|
||||
bool addContentSearch = false;
|
||||
bool addPathSearch = false;
|
||||
@ -526,17 +525,15 @@ void MainWindow::lineEditReturnPressed()
|
||||
return tokens;
|
||||
};
|
||||
|
||||
/* An explicit search, we just pass it on */
|
||||
/* An explicit search, no lone words. We just pass it on */
|
||||
if(!(tmpQuery.getTokensMask() & TokenType::WORD))
|
||||
{
|
||||
if(tmpQuery.hasContentSearch())
|
||||
{
|
||||
this->contentSearchQuery.setTokens(createFinalTokens(TokenType::FILTER_CONTENT_CONTAINS));
|
||||
addContentSearch = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this->contentSearchQuery.setTokens(createFinalTokens(TokenType::FILTER_PATH_CONTAINS));
|
||||
addPathSearch = true;
|
||||
}
|
||||
}
|
||||
@ -551,8 +548,7 @@ void MainWindow::lineEditReturnPressed()
|
||||
/* A content search and lone words, e. g. c:("to be or not") ebooks */
|
||||
else if(tmpQuery.hasContentSearch() && (tmpQuery.getTokensMask() & TokenType::WORD))
|
||||
{
|
||||
this->contentSearchQuery = tmpQuery;
|
||||
this->contentSearchQuery.setTokens(createFinalTokens(TokenType::FILTER_PATH_CONTAINS));
|
||||
this->contentSearchQuery = LooqsQuery::build(q, TokenType::FILTER_PATH_CONTAINS, false);
|
||||
addContentSearch = true;
|
||||
addPathSearch = false;
|
||||
}
|
||||
@ -560,7 +556,7 @@ void MainWindow::lineEditReturnPressed()
|
||||
else if(!tmpQuery.hasPathSearch() && !tmpQuery.hasContentSearch())
|
||||
{
|
||||
this->contentSearchQuery.setTokens(createFinalTokens(TokenType::FILTER_CONTENT_CONTAINS));
|
||||
pathsQuery.setTokens(createFinalTokens(TokenType::FILTER_PATH_CONTAINS));
|
||||
pathsQuery = LooqsQuery::build(q, TokenType::FILTER_PATH_CONTAINS, false);
|
||||
addContentSearch = true;
|
||||
addPathSearch = true;
|
||||
}
|
||||
@ -580,6 +576,10 @@ void MainWindow::lineEditReturnPressed()
|
||||
}
|
||||
results.append(searcher.search(this->contentSearchQuery));
|
||||
}
|
||||
else
|
||||
{
|
||||
this->contentSearchQuery.setTokens({});
|
||||
}
|
||||
return results;
|
||||
});
|
||||
searchWatcher.setFuture(searchFuture);
|
||||
|
Laden…
Verwijs in nieuw issue
Block a user