|
|
|
@ -1701,6 +1701,11 @@ void TorrentHandle::manageIncompleteFiles()
@@ -1701,6 +1701,11 @@ void TorrentHandle::manageIncompleteFiles()
|
|
|
|
|
{ |
|
|
|
|
const bool isAppendExtensionEnabled = m_session->isAppendExtensionEnabled(); |
|
|
|
|
QVector<qreal> fp = filesProgress(); |
|
|
|
|
if( fp.size() != filesCount() ) { |
|
|
|
|
qDebug() << "skip manageIncompleteFiles because of invalid torrent meta-data or empty file-progress"; |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for (int i = 0; i < filesCount(); ++i) { |
|
|
|
|
QString name = filePath(i); |
|
|
|
|
if (isAppendExtensionEnabled && (fileSize(i) > 0) && (fp[i] < 1)) { |
|
|
|
|