Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

HAL-1052 Clearing filter resets column results #179

Merged
merged 1 commit into from
Apr 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ private void applyFilter(String token) {
}

public void clear() {
textBox.setText("");
this.currentFilterExpression = null;

delegate.setRowCount(origValues.size(), true);
delegate.setRowData(0, origValues);

// the currentFilterExpression needs to be reset after the delegate change to avoid overriding origValues by the rowCountChangeHandler
textBox.setText("");
this.currentFilterExpression = null;
}

public interface Predicate<T> {
Expand Down