quint64 startSize = _tmpFile.size();
if (startSize > 0) {
- if (startSize == _item._size) {
+ if (startSize == _item->_size) {
qDebug() << "File is already complete, no need to download";
+ _tmpFile.close();
downloadFinished();
return;
}
void PropagateDownloadFileQNAM::downloadFinished()
{
-
- QString fn = _propagator->getFilePath(_item._file);
+ QString fn = _propagator->getFilePath(_item->_file);
// In case of file name clash, report an error
// This can happen if another parallel download saved a clashing file.