mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Remove the max half-open connections option from GUI
Its functionality was deprecated long ago.
This commit is contained in:
@@ -287,7 +287,6 @@ Session::Session(QObject *parent)
|
||||
, m_announceIP(BITTORRENT_SESSION_KEY("AnnounceIP"))
|
||||
, m_isSuperSeedingEnabled(BITTORRENT_SESSION_KEY("SuperSeedingEnabled"), false)
|
||||
, m_maxConnections(BITTORRENT_SESSION_KEY("MaxConnections"), 500, lowerLimited(0, -1))
|
||||
, m_maxHalfOpenConnections(BITTORRENT_SESSION_KEY("MaxHalfOpenConnections"), 20, lowerLimited(0, -1))
|
||||
, m_maxUploads(BITTORRENT_SESSION_KEY("MaxUploads"), -1, lowerLimited(0, -1))
|
||||
, m_maxConnectionsPerTorrent(BITTORRENT_SESSION_KEY("MaxConnectionsPerTorrent"), 100, lowerLimited(0, -1))
|
||||
, m_maxUploadsPerTorrent(BITTORRENT_SESSION_KEY("MaxUploadsPerTorrent"), -1, lowerLimited(0, -1))
|
||||
@@ -3113,20 +3112,6 @@ void Session::setMaxConnections(int max)
|
||||
}
|
||||
}
|
||||
|
||||
int Session::maxHalfOpenConnections() const
|
||||
{
|
||||
return m_maxHalfOpenConnections;
|
||||
}
|
||||
|
||||
void Session::setMaxHalfOpenConnections(int max)
|
||||
{
|
||||
max = (max > 0) ? max : -1;
|
||||
if (max != m_maxHalfOpenConnections) {
|
||||
m_maxHalfOpenConnections = max;
|
||||
configureDeferred();
|
||||
}
|
||||
}
|
||||
|
||||
int Session::maxUploads() const
|
||||
{
|
||||
return m_maxUploads;
|
||||
|
||||
Reference in New Issue
Block a user