mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-21 03:12:21 +08:00
Don't put limits to the alternative speed limits
This commit is contained in:
parent
47e7b3fac2
commit
9b5fea1987
@ -572,10 +572,7 @@ void Preferences::setGlobalUploadLimit(int limit) {
|
||||
}
|
||||
|
||||
int Preferences::getAltGlobalDownloadLimit() const {
|
||||
int ret = value("Preferences/Connection/GlobalDLLimitAlt", 10).toInt();
|
||||
if (ret <= 0)
|
||||
ret = 10;
|
||||
return ret;
|
||||
return value("Preferences/Connection/GlobalDLLimitAlt", 10).toInt();
|
||||
}
|
||||
|
||||
void Preferences::setAltGlobalDownloadLimit(int limit) {
|
||||
@ -585,10 +582,7 @@ void Preferences::setAltGlobalDownloadLimit(int limit) {
|
||||
}
|
||||
|
||||
int Preferences::getAltGlobalUploadLimit() const {
|
||||
int ret = value("Preferences/Connection/GlobalUPLimitAlt", 10).toInt();
|
||||
if (ret <= 0)
|
||||
ret = 10;
|
||||
return ret;
|
||||
return value("Preferences/Connection/GlobalUPLimitAlt", 10).toInt();
|
||||
}
|
||||
|
||||
void Preferences::setAltGlobalUploadLimit(int limit) {
|
||||
|
Loading…
Reference in New Issue
Block a user