mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 02:36:10 +03:00
Don't apply Mark-of-the-Web on existing files
`TorrentImpl::isDownloading()` was excessively broad which included unexpected events for the case here. So use the underlying state directly. Closes #21788. PR #21836.
This commit is contained in:
parent
09899a7d0d
commit
ac9ca4f452
1 changed files with 2 additions and 1 deletions
|
@ -2378,7 +2378,8 @@ void TorrentImpl::handleFileCompletedAlert(const lt::file_completed_alert *p)
|
|||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
|
||||
// only apply Mark-of-the-Web to new download files
|
||||
if (Preferences::instance()->isMarkOfTheWebEnabled() && isDownloading())
|
||||
if (Preferences::instance()->isMarkOfTheWebEnabled()
|
||||
&& (m_nativeStatus.state == lt::torrent_status::downloading))
|
||||
{
|
||||
const Path fullpath = actualStorageLocation() / actualPath;
|
||||
Utils::OS::applyMarkOfTheWeb(fullpath);
|
||||
|
|
Loading…
Reference in a new issue