From 4ab32a76f6bd41e8725130116fa9a2f2794eb219 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 13842b61d..5d4667649 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -1285,6 +1285,8 @@ void TorrentHandle::setSequentialDownload(bool b) m_nativeHandle.set_sequential_download(b); m_nativeStatus.sequential_download = b; // prevent return cached value } + + saveResumeData(); } void TorrentHandle::toggleSequentialDownload() @@ -1331,6 +1333,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()