Increase the download size limit to 100 MiB

This commit is contained in:
thalieht 2019-04-08 20:09:16 +03:00
parent e499317695
commit 25102b9c5d
4 changed files with 6 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;
}