Index: src/libchcore/TSubTaskCopyMove.cpp =================================================================== diff -u -rd88274a4bbfd4ef005d44c4d179b7596cb627486 -r297ce850732d4243414c851df145ca97bd696baa --- src/libchcore/TSubTaskCopyMove.cpp (.../TSubTaskCopyMove.cpp) (revision d88274a4bbfd4ef005d44c4d179b7596cb627486) +++ src/libchcore/TSubTaskCopyMove.cpp (.../TSubTaskCopyMove.cpp) (revision 297ce850732d4243414c851df145ca97bd696baa) @@ -131,6 +131,8 @@ for(size_t stIndex = rBasicProgressInfo.GetCurrentIndex(); stIndex < stSize; stIndex++) { + rBasicProgressInfo.SetCurrentIndex(stIndex); + // should we kill ? if(rThreadController.KillRequested()) { @@ -139,7 +141,7 @@ return TSubTaskBase::eSubResult_KillRequest; } - // update m_stNextIndex, getting current CFileInfo + // next file to be copied TFileInfoPtr spFileInfo = rFilesCache.GetAt(rBasicProgressInfo.GetCurrentIndex()); // set dest path with filename @@ -215,8 +217,6 @@ // attributes if(GetTaskPropValue(rTaskDefinition.GetConfiguration())) TLocalFilesystem::SetAttributes(ccp.pathDstFile, spFileInfo->GetAttributes()); // as above - - rBasicProgressInfo.SetCurrentIndex(stIndex + 1); } // delete buffer - it's not needed