From 62cc40136a260e32ef71861f5f0a092d5810d1dd Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 31 Jan 2016 18:16:18 +0000 Subject: [PATCH] Fix MAS permission issues --- .../filebot/ui/analyze/FileTreeTransferablePolicy.java | 10 +++++----- .../ui/sfv/ChecksumTableTransferablePolicy.java | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/source/net/filebot/ui/analyze/FileTreeTransferablePolicy.java b/source/net/filebot/ui/analyze/FileTreeTransferablePolicy.java index 149ff6c4..33362c9b 100644 --- a/source/net/filebot/ui/analyze/FileTreeTransferablePolicy.java +++ b/source/net/filebot/ui/analyze/FileTreeTransferablePolicy.java @@ -53,11 +53,6 @@ class FileTreeTransferablePolicy extends BackgroundFileTransferablePolicy files, TransferAction action) { - // make sure we have access to the parent folder structure, not just the dropped file - if (isMacSandbox()) { - MacAppUtilities.askUnlockFolders(getWindow(tree), files); - } - super.handleInBackground(files, action); } @@ -68,6 +63,11 @@ class FileTreeTransferablePolicy extends BackgroundFileTransferablePolicy files, TransferAction action) { - // make sure we have access to the parent folder structure, not just the dropped file - if (isMacSandbox()) { - MacAppUtilities.askUnlockFolders(getWindow(table), files); - } - if (files.size() == 1 && getHashType(files.get(0)) != null) { model.setHashType(getHashType(files.get(0))); } @@ -78,6 +73,11 @@ class ChecksumTableTransferablePolicy extends BackgroundFileTransferablePolicy files, TransferAction action) throws IOException { + // make sure we have access to the parent folder structure, not just the dropped file + if (isMacSandbox()) { + MacAppUtilities.askUnlockFolders(getWindow(table), files); + } + // initialize drop parameters executor.set(computationService.newExecutor()); verificationTracker.set(new VerificationTracker(5));