* allow dropping of folders that don't contain video files

This commit is contained in:
Reinhard Pointner 2011-11-14 12:05:05 +00:00
parent 46079e98f3
commit 9c15137fcb
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ abstract class SubtitleDropTarget extends JButton {
private DropAction getDropAction(List<File> files) {
// video files only, or any folder, containing video files
if (containsOnly(files, VIDEO_FILES) || (containsOnly(files, FOLDERS) && filter(listFiles(files, 0, false), VIDEO_FILES).size() > 0)) {
if (containsOnly(files, VIDEO_FILES) || (containsOnly(files, FOLDERS))) {
return DropAction.Download;
}