Fix Bandwidth Scheduler. Closes #3376.

This commit is contained in:
Vladimir Golovnev (Glassez) 2015-07-22 08:51:23 +03:00
parent dfb2f8b3b3
commit 64ebc5cfd6
3 changed files with 41 additions and 26 deletions

View file

@ -208,10 +208,8 @@ void StatusBar::updateAltSpeedsBtn(bool alternative) {
void StatusBar::toggleAlternativeSpeeds() {
Preferences* const pref = Preferences::instance();
if (pref->isSchedulerEnabled()) {
pref->setSchedulerEnabled(false);
if (pref->isSchedulerEnabled())
m_bar->showMessage(tr("Manual change of rate limits mode. The scheduler is disabled."), 5000);
}
BitTorrent::Session::instance()->changeSpeedLimitMode(!pref->isAltBandwidthEnabled());
}