Kaynağa Gözat

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)

Source commit: c2a8ff4340d9a0e7cd4943ddfdddd49d6efe8b48
Martin Prikryl 7 yıl önce
ebeveyn
işleme
5b8156df4e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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)