Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
33d736a4b6
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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;
 }