handle no results

This commit is contained in:
bancika
2020-04-13 15:41:08 +02:00
parent f299106430
commit 73bc4b2776
2 changed files with 5 additions and 3 deletions
@@ -1012,9 +1012,10 @@ public class Presenter implements IPlugInPort {
(c.getValueForDisplay() != null && c.getValueForDisplay().toLowerCase().matches(criteria.toLowerCase())))
matching.add(c);
}
updateSelection(matching);
updateSelection(matching);
messageDispatcher.dispatchMessage(EventType.REPAINT);
messageDispatcher.dispatchMessage(EventType.SCROLL_TO, getSelectionBounds(true));
if (matching.size() > 0)
messageDispatcher.dispatchMessage(EventType.SCROLL_TO, getSelectionBounds(true));
}
@Override