From 664cfe7d6954d9b541f9b89bcf09e59a713fbdca Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 29 Jun 2019 19:56:36 +0800 Subject: [PATCH] Fix torrent properties not saved for paused torrents --- src/base/bittorrent/torrenthandle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index f65b3b0c7..c97e2ce7d 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -1365,6 +1365,8 @@ void TorrentHandle::setSequentialDownload(const bool enable) m_nativeStatus.flags &= ~lt::torrent_flags::sequential_download; // prevent return cached value } #endif + + saveResumeData(); } void TorrentHandle::toggleSequentialDownload() @@ -1418,6 +1420,8 @@ void TorrentHandle::setFirstLastPiecePriorityImpl(const bool enabled, const QVec LogMsg(tr("Download first and last piece first: %1, torrent: '%2'") .arg((enabled ? tr("On") : tr("Off")), name())); + + saveResumeData(); } void TorrentHandle::toggleFirstLastPiecePriority()