mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-23 22:49:37 -05:00
cleanup
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1161 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d870ae4ef2
commit
5affea57ae
@ -143,16 +143,14 @@ void ServerDialog::load()
|
|||||||
rsiface->lockData(); /* Lock Interface */
|
rsiface->lockData(); /* Lock Interface */
|
||||||
|
|
||||||
ui.totalRate->setValue(rsiface->getConfig().maxDataRate);
|
ui.totalRate->setValue(rsiface->getConfig().maxDataRate);
|
||||||
|
ui.indivRate->setValue(rsiface->getConfig().maxIndivDataRate);
|
||||||
|
|
||||||
// It makes no sense if the total Transfer rate is lower than the individual rate.
|
// It makes no sense to set the total transfer rate lower than the individual rate.
|
||||||
// Avoid this due setting uper limit for individual rate, and correct old wrong saved settings.
|
// Avoid this by setting the upper limit for individual rate to total transfer rate now,
|
||||||
if (rsiface->getConfig().maxDataRate < rsiface->getConfig().maxIndivDataRate) {
|
// and every time the user changes the total transfer rate.
|
||||||
ui.indivRate->setValue(rsiface->getConfig().maxDataRate);
|
ui.indivRate->setMaximum(rsiface->getConfig().maxDataRate);
|
||||||
} else {
|
QObject::connect(ui.totalRate, SIGNAL (valueChanged(int)),
|
||||||
ui.indivRate->setValue(rsiface->getConfig().maxIndivDataRate);
|
this, SLOT (setMaximumIndivRate(int)));
|
||||||
}
|
|
||||||
QObject::connect(ui.totalRate, SIGNAL (valueChanged(int)),
|
|
||||||
this, SLOT (setMaximumIndivRate(int)));
|
|
||||||
|
|
||||||
rsiface->unlockData(); /* UnLock Interface */
|
rsiface->unlockData(); /* UnLock Interface */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user