mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Fix slider for per torrent speed limits when no global speed limit has been set. Closes #6046.
This commit is contained in:
parent
2bd5ea2c68
commit
055b1e0163
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ void SpeedLimitDialog::setupDialog(long max_slider, long val) const
|
|||
{
|
||||
if (val < 0)
|
||||
val = 0;
|
||||
if (max_slider < 0)
|
||||
if (max_slider <= 0)
|
||||
max_slider = 1000;
|
||||
// This can happen for example if global rate limit is lower
|
||||
// than torrent rate limit.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue