1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-28 15:34:16 +00:00

Properly handle "Append extension" option changing

This commit is contained in:
Vladimir Golovnev (Glassez) 2020-11-21 15:29:36 +03:00
parent 0e8feed2f2
commit acab62e345
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7

View File

@ -593,11 +593,11 @@ void Session::setAppendExtensionEnabled(const bool enabled)
{ {
if (isAppendExtensionEnabled() != enabled) if (isAppendExtensionEnabled() != enabled)
{ {
m_isAppendExtensionEnabled = enabled;
// append or remove .!qB extension for incomplete files // append or remove .!qB extension for incomplete files
for (TorrentHandleImpl *const torrent : asConst(m_torrents)) for (TorrentHandleImpl *const torrent : asConst(m_torrents))
torrent->handleAppendExtensionToggled(); torrent->handleAppendExtensionToggled();
m_isAppendExtensionEnabled = enabled;
} }
} }