From: <arn...@us...> - 2007-12-10 22:30:41
|
Revision: 930 http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=930&view=rev Author: arnetheduck Date: 2007-12-10 14:30:37 -0800 (Mon, 10 Dec 2007) Log Message: ----------- fix file moving Modified Paths: -------------- dcplusplus/trunk/dcpp/QueueManager.cpp Modified: dcplusplus/trunk/dcpp/QueueManager.cpp =================================================================== --- dcplusplus/trunk/dcpp/QueueManager.cpp 2007-12-09 22:06:36 UTC (rev 929) +++ dcplusplus/trunk/dcpp/QueueManager.cpp 2007-12-10 22:30:37 UTC (rev 930) @@ -849,6 +849,10 @@ } if(aDownload->getType() != Transfer::TYPE_FILE || q->isFinished()) { + // Delete file here to ensure that move works + delete aDownload->getFile(); + aDownload->setFile(0); + // Check if we're anti-fragging... if(aDownload->isSet(Download::FLAG_ANTI_FRAG)) { // Ok, rename the file to what we expect it to be... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |