From ad92f85a909861a3b805b4b401d9ed0d39103863 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 31 Oct 2011 13:55:34 +0000 Subject: [PATCH] * sanity check --- source/net/sourceforge/filebot/ui/rename/RenamePanel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/net/sourceforge/filebot/ui/rename/RenamePanel.java b/source/net/sourceforge/filebot/ui/rename/RenamePanel.java index f3e2e794..fd623da1 100644 --- a/source/net/sourceforge/filebot/ui/rename/RenamePanel.java +++ b/source/net/sourceforge/filebot/ui/rename/RenamePanel.java @@ -336,6 +336,10 @@ public class RenamePanel extends JComponent { @Override public void actionPerformed(final ActionEvent evt) { + if (renameModel.files().isEmpty()) { + return; + } + // auto-match in progress namesList.firePropertyChange(LOADING_PROPERTY, false, true);