Merge pull request #3483 from glassez/bandwidth

Fix Bandwidth Scheduler. Closes #3376.
This commit is contained in:
sledgehammer999
2015-07-29 22:28:22 +03:00
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());
}