From 9d9294ca7c95b61e65a829df84855e367bed872f Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Thu, 11 Aug 2016 20:02:13 -0700 Subject: [PATCH] Use same dragdrop method for tabs Boxes used a more flexible variant that allowed for drag&drop from browser downloads (chrome). --- PKHeX/MainWindow/Main.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PKHeX/MainWindow/Main.cs b/PKHeX/MainWindow/Main.cs index 0cee4f438..43612ef0d 100644 --- a/PKHeX/MainWindow/Main.cs +++ b/PKHeX/MainWindow/Main.cs @@ -2421,7 +2421,10 @@ namespace PKHeX // Drag & Drop Events private void tabMain_DragEnter(object sender, DragEventArgs e) { - if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropEffects.Move; + if (e.AllowedEffect == (DragDropEffects.Copy | DragDropEffects.Link)) // external file + e.Effect = DragDropEffects.Copy; + else if (e.Data != null) // within + e.Effect = DragDropEffects.Move; } private void tabMain_DragDrop(object sender, DragEventArgs e) {