1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-27 06:54:20 +00:00

Emit signal when redirected to Magnet

This commit is contained in:
Vladimir Golovnev (Glassez) 2020-06-19 12:15:15 +03:00
parent 9dfeeb9e81
commit 1e86c76e8a
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7

View File

@ -1782,6 +1782,7 @@ void Session::handleDownloadFinished(const Net::DownloadResult &result)
, MagnetUri(), TorrentInfo::load(result.data));
break;
case Net::DownloadStatus::RedirectedToMagnet:
emit downloadFromUrlFinished(result.url);
addTorrent_impl(CreateTorrentParams(m_downloadedTorrents.take(result.url)), MagnetUri(result.magnet));
break;
default: