浏览代码

Move command on Synchronization checklist window can be used with long local paths

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

+ 1 - 1
source/forms/CustomScpExplorer.cpp

@@ -6422,7 +6422,7 @@ void __fastcall TCustomScpExplorerForm::DoSynchronizeMove(
   }
   else if (DebugAlwaysTrue(Side == osLocal))
   {
-    if (!MoveFile(FileName.c_str(), NewFileName.c_str()))
+    if (!MoveFile(ApiPath(FileName).c_str(), ApiPath(NewFileName).c_str()))
     {
       throw EOSExtException(FMTLOAD(RENAME_FILE_ERROR, (FileName, NewFileName)));
     }