소스 검색

Bug 1782: Deleting temporary local copy of remote file caused errors and invalid attempts to upload the nonexisting file

https://winscp.net/tracker/1782

Source commit: 91b798cc098791734c21db9c4fd73774d814d241
Martin Prikryl 6 년 전
부모
커밋
33d736a4b6
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      source/windows/EditorManager.cpp

+ 3 - 2
source/windows/EditorManager.cpp

@@ -464,8 +464,9 @@ bool __fastcall TEditorManager::HasFileChanged(int Index, TDateTime & NewTimesta
   }
   else
   {
-    FileAge(FileData->FileName, NewTimestamp);
-    Result = (FileData->Timestamp != NewTimestamp);
+    Result =
+      FileAge(FileData->FileName, NewTimestamp) &&
+      (FileData->Timestamp != NewTimestamp);
   }
   return Result;
 }