mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
associated changes for the GUI. move all datarate reference to use rsConfig.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5890 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
de80f2aa3e
commit
4561752c45
5 changed files with 21 additions and 24 deletions
|
@ -29,7 +29,7 @@
|
|||
#include <QHeaderView>
|
||||
|
||||
#include <retroshare/rsfiles.h>
|
||||
#include <retroshare/rsiface.h>
|
||||
#include <retroshare/rsconfig.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
#include <retroshare/rstypes.h>
|
||||
#include "settings/rsharesettings.h"
|
||||
|
@ -149,7 +149,7 @@ void QuickStartWizard::on_pushButtonConnectionNext_clicked()
|
|||
{
|
||||
rsPeers->setVisState(rsPeers->getOwnId(), visState);
|
||||
}
|
||||
rsicontrol->ConfigSetDataRates( ui.doubleSpinBoxDownloadSpeed->value(), ui.doubleSpinBoxUploadSpeed->value() );
|
||||
rsConfig->SetMaxDataRates( ui.doubleSpinBoxDownloadSpeed->value(), ui.doubleSpinBoxUploadSpeed->value() );
|
||||
|
||||
ui.pagesWizard->setCurrentIndex(2);
|
||||
}
|
||||
|
@ -450,12 +450,12 @@ void QuickStartWizard::loadNetwork()
|
|||
|
||||
ui.discoveryComboBox->setCurrentIndex(netIndex);
|
||||
|
||||
rsiface->lockData(); /* Lock Interface */
|
||||
int dlrate = 0;
|
||||
int ulrate = 0;
|
||||
rsConfig->GetMaxDataRates(dlrate, ulrate);
|
||||
ui.doubleSpinBoxDownloadSpeed->setValue(dlrate);
|
||||
ui.doubleSpinBoxUploadSpeed->setValue(ulrate);
|
||||
|
||||
ui.doubleSpinBoxDownloadSpeed->setValue(rsiface->getConfig().maxDownloadDataRate);
|
||||
ui.doubleSpinBoxUploadSpeed->setValue(rsiface->getConfig().maxUploadDataRate);
|
||||
|
||||
rsiface->unlockData(); /* UnLock Interface */
|
||||
}
|
||||
|
||||
void QuickStartWizard::saveChanges()
|
||||
|
@ -528,7 +528,7 @@ void QuickStartWizard::saveChanges()
|
|||
rsPeers->setExtAddress(rsPeers->getOwnId(), ui.extAddress->text().toStdString(), ui.extPort->value());
|
||||
}*/
|
||||
|
||||
rsicontrol->ConfigSetDataRates( ui.doubleSpinBoxDownloadSpeed->value(), ui.doubleSpinBoxUploadSpeed->value() );
|
||||
rsConfig->SetMaxDataRates( ui.doubleSpinBoxDownloadSpeed->value(), ui.doubleSpinBoxUploadSpeed->value() );
|
||||
loadNetwork();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue