Add uploadLimit, downloadLimit fields to AddTorrentData & AddTorrentParams

This commit is contained in:
Chocobo1 2017-08-14 19:44:56 +08:00
commit 66b86888fc
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
4 changed files with 10 additions and 0 deletions

View file

@ -2193,6 +2193,8 @@ bool Session::addTorrent_impl(AddTorrentData addData, const MagnetUri &magnetUri
p.max_connections = maxConnectionsPerTorrent();
p.max_uploads = maxUploadsPerTorrent();
p.save_path = Utils::Fs::toNativePath(savePath).toStdString();
p.upload_limit = addData.uploadLimit;
p.download_limit = addData.downloadLimit;
m_addingTorrents.insert(hash, addData);
// Adding torrent to BitTorrent session