From acab62e345a6af64307aaa2a39cd44a2064f23ac Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Sat, 21 Nov 2020 15:29:36 +0300 Subject: [PATCH] Properly handle "Append extension" option changing --- src/base/bittorrent/session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index 9633b0ace..55791b2a9 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -593,11 +593,11 @@ void Session::setAppendExtensionEnabled(const bool enabled) { if (isAppendExtensionEnabled() != enabled) { + m_isAppendExtensionEnabled = enabled; + // append or remove .!qB extension for incomplete files for (TorrentHandleImpl *const torrent : asConst(m_torrents)) torrent->handleAppendExtensionToggled(); - - m_isAppendExtensionEnabled = enabled; } }