* don't allow empty searches

This commit is contained in:
Reinhard Pointner 2013-09-22 05:29:11 +00:00
parent 2ffd53a60a
commit dc1ef24ad9
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ public abstract class AbstractSearchPanel<S, E> extends JComponent {
@Override
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand() == null) {
if (e.getActionCommand() == null || searchTextField.getText().trim().isEmpty()) {
// command triggered by auto-completion
return;
}