Fix MAS permission issues

This commit is contained in:
Reinhard Pointner 2016-01-31 18:06:57 +00:00
parent b428b13835
commit 5ffc2a804c
2 changed files with 6 additions and 4 deletions

View File

@ -27,11 +27,13 @@ import net.filebot.util.ExceptionUtilities;
class ChecksumTableTransferablePolicy extends BackgroundFileTransferablePolicy<ChecksumCell> {
private final ChecksumTable table;
private final ChecksumTableModel model;
private final ChecksumComputationService computationService;
public ChecksumTableTransferablePolicy(ChecksumTableModel model, ChecksumComputationService checksumComputationService) {
this.model = model;
public ChecksumTableTransferablePolicy(ChecksumTable table, ChecksumComputationService checksumComputationService) {
this.table = table;
this.model = table.getModel();
this.computationService = checksumComputationService;
}
@ -52,7 +54,7 @@ class ChecksumTableTransferablePolicy extends BackgroundFileTransferablePolicy<C
protected void handleInBackground(List<File> files, TransferAction action) {
// make sure we have access to the parent folder structure, not just the dropped file
if (isMacSandbox()) {
MacAppUtilities.askUnlockFolders(getWindow(files), files);
MacAppUtilities.askUnlockFolders(getWindow(table), files);
}
if (files.size() == 1 && getHashType(files.get(0)) != null) {

View File

@ -44,7 +44,7 @@ public class SfvPanel extends JComponent {
private final ChecksumTable table = new ChecksumTable();
private final ChecksumTableTransferablePolicy transferablePolicy = new ChecksumTableTransferablePolicy(table.getModel(), computationService);
private final ChecksumTableTransferablePolicy transferablePolicy = new ChecksumTableTransferablePolicy(table, computationService);
private final ChecksumTableExportHandler exportHandler = new ChecksumTableExportHandler(table.getModel());
public SfvPanel() {