* MAS: restore permissions for format sample file

This commit is contained in:
Reinhard Pointner 2014-08-11 07:10:20 +00:00
parent 3fd2d0d996
commit 5d76f925eb
1 changed files with 8 additions and 0 deletions

View File

@ -1,7 +1,9 @@
package net.filebot.ui.rename;
import static java.awt.Font.*;
import static java.util.Collections.*;
import static javax.swing.BorderFactory.*;
import static net.filebot.Settings.*;
import static net.filebot.ui.NotificationLogging.*;
import static net.filebot.util.ExceptionUtilities.*;
import static net.filebot.util.ui.SwingUI.*;
@ -63,6 +65,7 @@ import net.filebot.Settings;
import net.filebot.format.BindingException;
import net.filebot.format.ExpressionFormat;
import net.filebot.format.MediaBindingBean;
import net.filebot.mac.DropToUnlock;
import net.filebot.util.DefaultThreadFactory;
import net.filebot.util.ExceptionUtilities;
import net.filebot.util.PreferencesList;
@ -203,6 +206,11 @@ public class FormatDialog extends JDialog {
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (isMacSandbox()) {
if (sample != null && sample.getMediaFile() != null && sample.getMediaFile().exists()) {
DropToUnlock.showUnlockDialog(getWindow(evt.getSource()), singleton(sample.getMediaFile()));
}
}
checkFormatInBackground();
}
});