Преглед на файлове

Invalid asserting added in cb021fe3

Source commit: d9eaa3694a86b6125845f2eabea53ef6c77fb1a0
Martin Prikryl преди 3 години
родител
ревизия
78c4c84087
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      source/core/Terminal.cpp

+ 2 - 1
source/core/Terminal.cpp

@@ -4637,7 +4637,8 @@ void __fastcall TTerminal::RenameFile(const TRemoteFile * File, const UnicodeStr
 bool __fastcall TTerminal::DoRenameFile(const UnicodeString FileName, const TRemoteFile * File,
 bool __fastcall TTerminal::DoRenameFile(const UnicodeString FileName, const TRemoteFile * File,
   const UnicodeString NewName, bool Move)
   const UnicodeString NewName, bool Move)
 {
 {
-  bool IsBatchMove = (OperationProgress != NULL) && DebugAlwaysTrue(OperationProgress->Operation == foRemoteMove);
+  // Can be foDelete when recycling (ands overwrite should not happen in this case)
+  bool IsBatchMove = (OperationProgress != NULL) && (OperationProgress->Operation == foRemoteMove);
   TBatchOverwrite BatchOverwrite = (IsBatchMove ? OperationProgress->BatchOverwrite : boNo);
   TBatchOverwrite BatchOverwrite = (IsBatchMove ? OperationProgress->BatchOverwrite : boNo);
   UnicodeString AbsoluteNewName = AbsolutePath(NewName, true);
   UnicodeString AbsoluteNewName = AbsolutePath(NewName, true);
   bool Result = true;
   bool Result = true;