mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
parent
47daf1b358
commit
1d4071d6d8
1 changed files with 7 additions and 1 deletions
|
@ -2039,10 +2039,16 @@ void TorrentImpl::manageIncompleteFiles()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const lt::file_storage &nativeFiles = m_nativeHandle.torrent_file()->files();
|
||||||
|
|
||||||
for (int i = 0; i < filesCount(); ++i)
|
for (int i = 0; i < filesCount(); ++i)
|
||||||
{
|
{
|
||||||
const QString path = filePath(i);
|
const QString path = filePath(i);
|
||||||
const QString actualPath = actualFilePath(i);
|
|
||||||
|
const auto nativeIndex = m_torrentInfo.nativeIndexes().at(i);
|
||||||
|
const QString actualPath = Utils::Fs::toUniformPath(
|
||||||
|
QString::fromStdString(nativeFiles.file_path(nativeIndex)));
|
||||||
|
|
||||||
if (isAppendExtensionEnabled && (fileSize(i) > 0) && (fp[i] < 1))
|
if (isAppendExtensionEnabled && (fileSize(i) > 0) && (fp[i] < 1))
|
||||||
{
|
{
|
||||||
const QString wantedPath = path + QB_EXT;
|
const QString wantedPath = path + QB_EXT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue