diff --git a/source/net/filebot/ui/sfv/ChecksumTableTransferablePolicy.java b/source/net/filebot/ui/sfv/ChecksumTableTransferablePolicy.java index 5a3ca6a2..86d1c0c9 100644 --- a/source/net/filebot/ui/sfv/ChecksumTableTransferablePolicy.java +++ b/source/net/filebot/ui/sfv/ChecksumTableTransferablePolicy.java @@ -27,11 +27,13 @@ import net.filebot.util.ExceptionUtilities; class ChecksumTableTransferablePolicy extends BackgroundFileTransferablePolicy { + 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 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) { diff --git a/source/net/filebot/ui/sfv/SfvPanel.java b/source/net/filebot/ui/sfv/SfvPanel.java index c3fdbaac..2d8a8efd 100644 --- a/source/net/filebot/ui/sfv/SfvPanel.java +++ b/source/net/filebot/ui/sfv/SfvPanel.java @@ -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() {