From 440f47412fa058f2605fa4fd2d1ccc578e5a36b1 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 19 Mar 2016 21:09:48 +0000 Subject: [PATCH] Improved support for DnD and startup file args --- source/net/filebot/ui/analyze/AnalyzePanel.java | 2 +- source/net/filebot/ui/list/ListPanel.java | 2 +- source/net/filebot/ui/rename/RenamePanel.java | 2 +- source/net/filebot/ui/sfv/SfvPanel.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/net/filebot/ui/analyze/AnalyzePanel.java b/source/net/filebot/ui/analyze/AnalyzePanel.java index e18dafd6..2c11956e 100644 --- a/source/net/filebot/ui/analyze/AnalyzePanel.java +++ b/source/net/filebot/ui/analyze/AnalyzePanel.java @@ -43,7 +43,7 @@ public class AnalyzePanel extends JComponent { try { if (handler != null && handler.accept(transferable)) { - handler.handleTransferable(transferable, TransferAction.ADD); + handler.handleTransferable(transferable, TransferAction.PUT); } } catch (Exception e) { debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e); diff --git a/source/net/filebot/ui/list/ListPanel.java b/source/net/filebot/ui/list/ListPanel.java index 6960f7a1..fd8bf7cd 100644 --- a/source/net/filebot/ui/list/ListPanel.java +++ b/source/net/filebot/ui/list/ListPanel.java @@ -146,7 +146,7 @@ public class ListPanel extends JComponent { try { if (handler != null && handler.accept(transferable)) { - handler.handleTransferable(transferable, TransferAction.ADD); + handler.handleTransferable(transferable, TransferAction.PUT); } } catch (Exception e) { debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e); diff --git a/source/net/filebot/ui/rename/RenamePanel.java b/source/net/filebot/ui/rename/RenamePanel.java index c84c9a7e..f1afaee1 100644 --- a/source/net/filebot/ui/rename/RenamePanel.java +++ b/source/net/filebot/ui/rename/RenamePanel.java @@ -651,7 +651,7 @@ public class RenamePanel extends JComponent { try { if (handler != null && handler.accept(transferable)) { - handler.handleTransferable(transferable, TransferAction.ADD); + handler.handleTransferable(transferable, TransferAction.PUT); } } catch (Exception e) { debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e); diff --git a/source/net/filebot/ui/sfv/SfvPanel.java b/source/net/filebot/ui/sfv/SfvPanel.java index 5fa0be7a..5e19cb15 100644 --- a/source/net/filebot/ui/sfv/SfvPanel.java +++ b/source/net/filebot/ui/sfv/SfvPanel.java @@ -139,7 +139,7 @@ public class SfvPanel extends JComponent { try { if (handler != null && handler.accept(transferable)) { - handler.handleTransferable(transferable, TransferAction.ADD); + handler.handleTransferable(transferable, TransferAction.PUT); } } catch (Exception e) { debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e);