Skip to content

Commit

Permalink
'#39 Corrects AppListener to only use text from SearchFilterer (it was
Browse files Browse the repository at this point in the history
being added twice). Implement getQuery in SearchFilterer.
  • Loading branch information
patrickdalla committed Apr 22, 2024
1 parent d6cd081 commit aca03c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions iped-app/src/main/java/iped/app/ui/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,12 @@ public boolean hasFiltersApplied() {

@Override
public Query getQuery() {
String searchText = App.get().queryComboBox.getSelectedItem().toString();
try {
return new QueryBuilder(appCase).getQuery(searchText);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion iped-app/src/main/java/iped/app/ui/AppListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public Future<MultiSearchResult> updateFileListing(Query query) {
try {
UICaseSearcherFilter task;
if (query == null)
task = new UICaseSearcherFilter(searchText);
task = new UICaseSearcherFilter("");
else
task = new UICaseSearcherFilter(query);

Expand Down

0 comments on commit aca03c1

Please sign in to comment.