소스 검색

Bug 1660: Error when closing edited/opened files with "Keep temporary copies of remote files in deterministic paths" option enabled

(before Bug 1352, it worked because SHFileOperation silently does nothing when provided with an empty path)

(cherry picked from commit 5b8156df4e73aab36966f781fdfd82fa86c07a22)

Source commit: b7722a09eb3e5f011cbf2de460679e5ea9bec8d5
Martin Prikryl 7 년 전
부모
커밋
87e6a335ec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      source/windows/EditorManager.cpp

+ 1 - 1
source/windows/EditorManager.cpp

@@ -440,7 +440,7 @@ bool __fastcall TEditorManager::CloseFile(int Index, bool IgnoreErrors, bool Del
     FFiles.erase(FFiles.begin() + Index);
     Result = true;
 
-    if (Delete)
+    if (Delete && !LocalRootDirectory.IsEmpty())
     {
       if (!RecursiveDeleteFile(ExcludeTrailingBackslash(LocalRootDirectory), false) &&
           !IgnoreErrors)