mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 03:06:37 +03:00
Fix ratio limit for new torrents.
This commit is contained in:
parent
fb7ba92f69
commit
04f3f9d29d
2 changed files with 2 additions and 3 deletions
|
@ -134,7 +134,7 @@ AddTorrentData::AddTorrentData(const AddTorrentParams &in)
|
|||
, addForced(in.addForced)
|
||||
, addPaused(in.addPaused)
|
||||
, filePriorities(in.filePriorities)
|
||||
, ratioLimit(TorrentHandle::USE_GLOBAL_RATIO)
|
||||
, ratioLimit(in.ignoreShareRatio ? TorrentHandle::NO_RATIO_LIMIT : TorrentHandle::USE_GLOBAL_RATIO)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -192,7 +192,7 @@ TorrentHandle::TorrentHandle(Session *session, const libtorrent::torrent_handle
|
|||
, m_savePath(Utils::Fs::toNativePath(data.savePath))
|
||||
, m_label(data.label)
|
||||
, m_hasSeedStatus(data.resumed ? data.hasSeedStatus : false)
|
||||
, m_ratioLimit(data.resumed ? data.ratioLimit : (data.ignoreShareRatio ? NO_RATIO_LIMIT : USE_GLOBAL_RATIO))
|
||||
, m_ratioLimit(data.ratioLimit)
|
||||
, m_tempPathDisabled(data.disableTempPath)
|
||||
, m_hasMissingFiles(false)
|
||||
, m_useDefaultSavePath(false)
|
||||
|
|
|
@ -95,7 +95,6 @@ namespace BitTorrent
|
|||
TriStateBool addPaused;
|
||||
// for new torrents
|
||||
QVector<int> filePriorities;
|
||||
bool ignoreShareRatio;
|
||||
// for resumed torrents
|
||||
QDateTime addedTime;
|
||||
qreal ratioLimit;
|
||||
|
|
Loading…
Reference in a new issue