From 9c15137fcb638c8e73a77edd957f1f2a9a137ef4 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 14 Nov 2011 12:05:05 +0000 Subject: [PATCH] * allow dropping of folders that don't contain video files --- .../net/sourceforge/filebot/ui/subtitle/SubtitleDropTarget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/ui/subtitle/SubtitleDropTarget.java b/source/net/sourceforge/filebot/ui/subtitle/SubtitleDropTarget.java index 0002a17d..2bf6ce12 100644 --- a/source/net/sourceforge/filebot/ui/subtitle/SubtitleDropTarget.java +++ b/source/net/sourceforge/filebot/ui/subtitle/SubtitleDropTarget.java @@ -168,7 +168,7 @@ abstract class SubtitleDropTarget extends JButton { private DropAction getDropAction(List 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; }