|
|
@ -104,7 +104,7 @@ void SpeedLimitDialog::setupDialog(long max_slider, long val) const |
|
|
|
if (val < 0) |
|
|
|
if (val < 0) |
|
|
|
val = 0; |
|
|
|
val = 0; |
|
|
|
if (max_slider <= 0) |
|
|
|
if (max_slider <= 0) |
|
|
|
max_slider = 1000; |
|
|
|
max_slider = 10000; |
|
|
|
// This can happen for example if global rate limit is lower
|
|
|
|
// This can happen for example if global rate limit is lower
|
|
|
|
// than torrent rate limit.
|
|
|
|
// than torrent rate limit.
|
|
|
|
if (val > max_slider) |
|
|
|
if (val > max_slider) |
|
|
|