mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Fix values for unsetting speed limits.
This commit is contained in:
parent
6053390bf5
commit
db4b30ad48
4 changed files with 14 additions and 26 deletions
|
@ -1056,7 +1056,7 @@ bool OptionsDialog::isUPnPEnabled() const
|
|||
// [download,upload]
|
||||
QPair<int, int> OptionsDialog::getGlobalBandwidthLimits() const
|
||||
{
|
||||
int DL = -1, UP = -1;
|
||||
int DL = 0, UP = 0;
|
||||
if (m_ui->checkDownloadLimit->isChecked())
|
||||
DL = m_ui->spinDownloadLimit->value();
|
||||
if (m_ui->checkUploadLimit->isChecked())
|
||||
|
@ -1068,7 +1068,7 @@ QPair<int, int> OptionsDialog::getGlobalBandwidthLimits() const
|
|||
// [download,upload]
|
||||
QPair<int, int> OptionsDialog::getAltGlobalBandwidthLimits() const
|
||||
{
|
||||
int DL = -1, UP = -1;
|
||||
int DL = 0, UP = 0;
|
||||
if (m_ui->checkDownloadLimitAlt->isChecked())
|
||||
DL = m_ui->spinDownloadLimitAlt->value();
|
||||
if (m_ui->checkUploadLimitAlt->isChecked())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue