Turn off the scheduler when the user manually changes the rate limits mode.

This commit is contained in:
sledgehammer999
2013-10-20 14:07:24 +03:00
parent ddbe96c807
commit 3fbb61033f
2 changed files with 10 additions and 2 deletions

View File

@@ -207,7 +207,12 @@ public slots:
}
void toggleAlternativeSpeeds() {
QBtSession::instance()->useAlternativeSpeedsLimit(!Preferences().isAltBandwidthEnabled());
Preferences pref;
if (pref.isSchedulerEnabled()) {
pref.setSchedulerEnabled(false);
m_bar->showMessage(tr("Manual change of rate limits mode. The scheduler is disabled."), 5000);
}
QBtSession::instance()->useAlternativeSpeedsLimit(!pref.isAltBandwidthEnabled());
}
void capDownloadSpeed() {