mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Revert "Always save info dict when saving fastresume"
This reverts commit 4aab44e779
.
This commit is contained in:
parent
005f0010ec
commit
7aa01a1b51
2 changed files with 1 additions and 6 deletions
|
@ -3852,11 +3852,6 @@ void Session::startUpTorrents()
|
||||||
int resumedTorrentsCount = 0;
|
int resumedTorrentsCount = 0;
|
||||||
const auto startupTorrent = [this, &resumeDataDir, &resumedTorrentsCount](const TorrentResumeData ¶ms)
|
const auto startupTorrent = [this, &resumeDataDir, &resumedTorrentsCount](const TorrentResumeData ¶ms)
|
||||||
{
|
{
|
||||||
// TODO: Remove loading of .torrent files when starting up existing torrents
|
|
||||||
// Starting from v4.2.0, the required `info` dict will be stored in fastresume too
|
|
||||||
// (besides .torrent file), that means we can remove loading of .torrent files in
|
|
||||||
// a later release, such as v4.3.0.
|
|
||||||
|
|
||||||
const QString filePath = resumeDataDir.filePath(QString("%1.torrent").arg(params.hash));
|
const QString filePath = resumeDataDir.filePath(QString("%1.torrent").arg(params.hash));
|
||||||
qDebug() << "Starting up torrent" << params.hash << "...";
|
qDebug() << "Starting up torrent" << params.hash << "...";
|
||||||
if (!addTorrent_impl(params.addTorrentData, params.magnetUri, TorrentInfo::loadFromFile(filePath), params.data))
|
if (!addTorrent_impl(params.addTorrentData, params.magnetUri, TorrentInfo::loadFromFile(filePath), params.data))
|
||||||
|
|
|
@ -569,7 +569,7 @@ bool TorrentHandle::needSaveResumeData() const
|
||||||
|
|
||||||
void TorrentHandle::saveResumeData()
|
void TorrentHandle::saveResumeData()
|
||||||
{
|
{
|
||||||
m_nativeHandle.save_resume_data(lt::torrent_handle::save_info_dict);
|
m_nativeHandle.save_resume_data();
|
||||||
m_session->handleTorrentSaveResumeDataRequested(this);
|
m_session->handleTorrentSaveResumeDataRequested(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue