Browse Source

Correctly apply content layout when "Skip hash check" is enabled

PR #16825.
adaptive-webui-19844
Vladimir Golovnev 3 years ago committed by GitHub
parent
commit
dded874350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/base/bittorrent/session.cpp

4
src/base/bittorrent/session.cpp

@ -2298,8 +2298,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]] = addTorrentParams.filePaths.at(index).toString().toStdString(); p.renamed_files[nativeIndexes[index]] = filePaths.at(index).toString().toStdString();
} }
Q_ASSERT(p.file_priorities.empty()); Q_ASSERT(p.file_priorities.empty());

Loading…
Cancel
Save