Browse Source

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 years ago
parent
commit
33d736a4b6
1 changed files with 3 additions and 2 deletions
  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;
 }