mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 06:13:36 -07:00
Correctly apply content layout when "Skip hash check" is enabled
PR #16825.
This commit is contained in:
parent
169c4991d5
commit
8306a41d11
1 changed files with 2 additions and 2 deletions
|
@ -2192,8 +2192,8 @@ bool Session::addTorrent_impl(const std::variant<MagnetUri, TorrentInfo> &source
|
||||||
const auto nativeIndexes = torrentInfo.nativeIndexes();
|
const auto nativeIndexes = torrentInfo.nativeIndexes();
|
||||||
if (!filePaths.isEmpty())
|
if (!filePaths.isEmpty())
|
||||||
{
|
{
|
||||||
for (int index = 0; index < addTorrentParams.filePaths.size(); ++index)
|
for (int index = 0; index < filePaths.size(); ++index)
|
||||||
p.renamed_files[nativeIndexes[index]] = Utils::Fs::toNativePath(addTorrentParams.filePaths.at(index)).toStdString();
|
p.renamed_files[nativeIndexes[index]] = Utils::Fs::toNativePath(filePaths.at(index)).toStdString();
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_ASSERT(p.file_priorities.empty());
|
Q_ASSERT(p.file_priorities.empty());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue