Merge pull request #10464 from thalieht/torrent-size-limit

Increase the download request size limit from 10 to 100 MiB
This commit is contained in:
Mike Tzou
2019-04-11 10:14:49 +08:00
committed by GitHub
4 changed files with 7 additions and 5 deletions

View File

@@ -238,7 +238,7 @@ void AddNewTorrentDialog::show(const QString &source, const BitTorrent::AddTorre
if (Net::DownloadManager::hasSupportedScheme(source)) {
// Launch downloader
Net::DownloadManager::instance()->download(
Net::DownloadRequest(source).limit(10485760 /* 10MB */)
Net::DownloadRequest(source).limit(MAX_TORRENT_SIZE)
, dlg, &AddNewTorrentDialog::handleDownloadFinished);
return;
}