浏览代码

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

(cherry picked from commit b5db25ca7d269170aeafc1815947695a75a8c122)

Source commit: 6c701629157d158b0d70435a8ac814edffb7e8cc
Martin Prikryl 7 年之前
父节点
当前提交
d8177f8ced
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      source/forms/CustomScpExplorer.cpp

+ 4 - 0
source/forms/CustomScpExplorer.cpp

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