* fix Mac Sandbox issues that prevents download of subtitles

This commit is contained in:
Reinhard Pointner 2014-10-26 14:45:37 +00:00
parent 4ea21cd47f
commit 91031896fd
2 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package net.filebot.ui.subtitle;
import static javax.swing.BorderFactory.*;
import static javax.swing.JOptionPane.*;
import static net.filebot.Settings.*;
import static net.filebot.subtitle.SubtitleUtilities.*;
import static net.filebot.util.FileUtilities.*;
import static net.filebot.util.ui.SwingUI.*;
@ -59,6 +60,7 @@ import javax.swing.table.DefaultTableCellRenderer;
import net.filebot.Analytics;
import net.filebot.ResourceManager;
import net.filebot.mac.DropToUnlock;
import net.filebot.similarity.EpisodeMetrics;
import net.filebot.similarity.MetricCascade;
import net.filebot.similarity.SimilarityMetric;
@ -266,6 +268,11 @@ class SubtitleAutoMatchDialog extends JDialog {
final SubtitleMappingTableModel mappingModel = (SubtitleMappingTableModel) subtitleMappingTable.getModel();
// make sure we have access to the parent folder structure, not just the dropped file
if (isMacSandbox()) {
DropToUnlock.showUnlockFoldersDialog(getWindow(evt.getSource()), mappingModel.getVideoFiles());
}
// collect the subtitles that will be fetched
List<DownloadTask> downloadQueue = new ArrayList<DownloadTask>();

View File

@ -154,7 +154,7 @@ abstract class SubtitleDropTarget extends JButton {
@Override
protected boolean handleDrop(List<File> input) {
if (getQueryLanguage() == null) {
UILogger.info("Please select a specific subtitle language.");
UILogger.info("Please select your preferred subtitle language.");
return false;
}