1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 16:35:08 -05:00

* don't allow empty searches

This commit is contained in:
Reinhard Pointner 2013-09-22 05:29:11 +00:00
parent 2ffd53a60a
commit dc1ef24ad9

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;
}