Browse Source

Bug fix: When dragging files to other session tabs, drag cursor could change to "Move", although only "Copy" is possible.

Source commit: 1a1160f93f16432ffb7d555d4fbfdf2ebc93996e
Martin Prikryl 7 years ago
parent
commit
b5db25ca7d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      source/forms/CustomScpExplorer.cpp

+ 4 - 0
source/forms/CustomScpExplorer.cpp

@@ -9463,6 +9463,10 @@ void __fastcall TCustomScpExplorerForm::SessionsDDDragOver(int /*KeyState*/,
     {
       Effect = DROPEFFECT_None;
     }
+    else if ((TargetTerminal != Terminal) && (Effect == DROPEFFECT_Move))
+    {
+      Effect = DROPEFFECT_Copy;
+    }
   }
 }
 //---------------------------------------------------------------------------