Commit d691d4c7 authored by Joris Guisson's avatar Joris Guisson
Browse files

Merged rev 785936 (bwscheduler paused state, 152445)


svn path=/branches/ktorrent/3.0/; revision=785937
parent 6a77873b
......@@ -19,6 +19,7 @@ this makes sure that it is sized properly when you open the dialog
- Make sure that views stay sorted (158975)
- Make sure speed settings are kept in sync between all the places where you
can change them (159039)
- Make sure that scheduler plugin does not set stuff in paused state twice (152445)
Changes in 3.O :
- Fix sorting of upload and download rate (157939)
......
......@@ -153,11 +153,14 @@ namespace kt
else if (item.paused)
{
Out(SYS_SCD|LOG_NOTICE) << QString("Changing schedule to : PAUSED") << endl;
getCore()->setPausedState(true);
net::SocketMonitor::setDownloadCap(1024 * Settings::maxDownloadRate());
net::SocketMonitor::setUploadCap(1024 * Settings::maxUploadRate());
if (m_editor)
m_editor->updateStatusText(Settings::maxUploadRate(),Settings::maxDownloadRate(),true);
if (!getCore()->getPausedState())
{
getCore()->setPausedState(true);
net::SocketMonitor::setDownloadCap(1024 * Settings::maxDownloadRate());
net::SocketMonitor::setUploadCap(1024 * Settings::maxUploadRate());
if (m_editor)
m_editor->updateStatusText(Settings::maxUploadRate(),Settings::maxDownloadRate(),true);
}
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment