Ver código fonte

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 anos atrás
pai
commit
d8177f8ced
1 arquivos alterados com 4 adições e 0 exclusões
  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;
+    }
   }
 }
 //---------------------------------------------------------------------------