mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 04:38:04 -06:00
Add support for quarantine on macOS
This commit is contained in:
@@ -150,9 +150,9 @@ void Net::DownloadHandlerImpl::processFinishedDownload()
|
||||
{
|
||||
m_result.filePath = result.value();
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
|
||||
Utils::Misc::applyMarkOfTheWeb(m_result.filePath, m_result.url);
|
||||
#endif
|
||||
#endif // Q_OS_MACOS || Q_OS_WIN
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -166,9 +166,9 @@ void Net::DownloadHandlerImpl::processFinishedDownload()
|
||||
{
|
||||
m_result.filePath = destinationPath;
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
|
||||
Utils::Misc::applyMarkOfTheWeb(m_result.filePath, m_result.url);
|
||||
#endif
|
||||
#endif // Q_OS_MACOS || Q_OS_WIN
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user