mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-10 19:35:15 -05:00
* don't allow empty searches
This commit is contained in:
parent
2ffd53a60a
commit
dc1ef24ad9
@ -139,7 +139,7 @@ public abstract class AbstractSearchPanel<S, E> extends JComponent {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
if (e.getActionCommand() == null) {
|
if (e.getActionCommand() == null || searchTextField.getText().trim().isEmpty()) {
|
||||||
// command triggered by auto-completion
|
// command triggered by auto-completion
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user