Skip to content

Commit

Permalink
'#2163 Search Filter getQuery returns null if query text is
Browse files Browse the repository at this point in the history
correspondent to empty query, avoiding clearFilterButton to reconize it
as a filter and remains visible.
  • Loading branch information
patrickdalla committed May 28, 2024
1 parent 1e535b1 commit f58d09b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iped-app/src/main/java/iped/app/ui/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,8 @@ public boolean hasFiltersApplied() {
public Query getQuery() {
String searchText = queryComboBox.getSelectedItem().toString();
try {
if (!SEARCH_TOOL_TIP.equals(searchText)) {
if (!SEARCH_TOOL_TIP.equals(searchText)
&& !("".equals(searchText) || "*".equals(searchText) || "*:*".equals(searchText))) {
return new QueryBuilder(appCase).getQuery(searchText);
} else {
return null;
Expand Down

0 comments on commit f58d09b

Please sign in to comment.