Fix "Fetch Episodes only" behaviour

This commit is contained in:
Reinhard Pointner 2016-10-31 07:00:07 +08:00
parent 3ad63a76cc
commit 8aecd9f868
1 changed files with 5 additions and 3 deletions

View File

@ -720,7 +720,7 @@ public class RenamePanel extends JComponent {
log.log(Level.WARNING, e, e::toString);
}
return emptyList();
return null; // cancel operation
}
@Override
@ -859,11 +859,13 @@ public class RenamePanel extends JComponent {
// clear names list
renameModel.values().clear();
List<File> remainingFiles = new LinkedList<File>(getFiles(evt));
if (remainingFiles.isEmpty()) {
// select files
List<File> files = getFiles(evt);
if (files == null) {
return;
}
List<File> remainingFiles = new LinkedList<File>(files);
boolean strict = isStrict(evt);
SortOrder order = getSortOrder(evt);
Locale locale = getLocale(evt);