diff --git a/source/net/filebot/MediaTypes.java b/source/net/filebot/MediaTypes.java index dea916e3..8a845c8b 100644 --- a/source/net/filebot/MediaTypes.java +++ b/source/net/filebot/MediaTypes.java @@ -98,7 +98,9 @@ public class MediaTypes { public static ExtensionFileFilter combineFilter(ExtensionFileFilter... filters) { List extensions = new ArrayList(); for (ExtensionFileFilter it : filters) { - addAll(extensions, it.extensions()); + if (!it.acceptAny()) { + addAll(extensions, it.extensions()); + } } return new ExtensionFileFilter(extensions); } diff --git a/source/net/filebot/UserFiles.java b/source/net/filebot/UserFiles.java index 6ddbc546..8568d6a9 100644 --- a/source/net/filebot/UserFiles.java +++ b/source/net/filebot/UserFiles.java @@ -112,7 +112,7 @@ public class UserFiles { } } - if (filter != null) { + if (filter != null && !filter.acceptAny()) { chooser.setFileFilter(new javax.swing.filechooser.FileNameExtensionFilter(filter.toString(), filter.extensions())); } @@ -259,7 +259,7 @@ public class UserFiles { // show FileChooser javafx.stage.FileChooser fileChooser = new javafx.stage.FileChooser(); fileChooser.setTitle(title); - if (filter != null) { + if (filter != null && !filter.acceptAny()) { String[] globFilter = filter.extensions(); for (int i = 0; i < globFilter.length; i++) { globFilter[i] = "*." + globFilter[i];