From b93e91c7e538551485e422e0da9d5a681d58be09 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 27 Aug 2014 19:18:24 +0000 Subject: [PATCH] * MAS --- .../filebot/ui/analyze/FileTreeTransferablePolicy.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/net/filebot/ui/analyze/FileTreeTransferablePolicy.java b/source/net/filebot/ui/analyze/FileTreeTransferablePolicy.java index 11f74f57..0060f4e6 100644 --- a/source/net/filebot/ui/analyze/FileTreeTransferablePolicy.java +++ b/source/net/filebot/ui/analyze/FileTreeTransferablePolicy.java @@ -1,7 +1,9 @@ package net.filebot.ui.analyze; +import static net.filebot.Settings.*; import static net.filebot.ui.NotificationLogging.*; import static net.filebot.util.FileUtilities.*; +import static net.filebot.util.ui.SwingUI.*; import java.io.File; import java.util.ArrayList; @@ -12,6 +14,7 @@ import java.util.logging.Level; import javax.swing.tree.TreeNode; +import net.filebot.mac.DropToUnlock; import net.filebot.ui.analyze.FileTree.FileNode; import net.filebot.ui.analyze.FileTree.FolderNode; import net.filebot.ui.transfer.BackgroundFileTransferablePolicy; @@ -53,6 +56,11 @@ class FileTreeTransferablePolicy extends BackgroundFileTransferablePolicy 1 || containsOnly(files, FILES)) { files = Arrays.asList(files.get(0).getParentFile()); + + // make sure we have access to the parent folder structure, not just the dropped file + if (isMacSandbox()) { + DropToUnlock.showUnlockFoldersDialog(getWindow(tree), files); + } } // use fast file to minimize system calls like length(), isDirectory(), isFile(), ...