added signal blocking calls to a few last config pages

This commit is contained in:
csoler 2017-02-28 00:10:54 +01:00
parent 6d67da5ff3
commit 9d3df7c01f
2 changed files with 10 additions and 8 deletions

View File

@ -20,6 +20,7 @@
****************************************************************/
#include "PeoplePage.h"
#include "util/misc.h"
#include "rsharesettings.h"
#include "retroshare/rsreputations.h"
#include "retroshare/rsidentity.h"
@ -56,9 +57,9 @@ void PeoplePage::load()
uint32_t threshold_for_positive = rsReputations->thresholdForRemotelyPositiveReputation();
uint32_t threshold_for_negative = rsReputations->thresholdForRemotelyNegativeReputation();
ui.autoPositiveOpinion_CB->setChecked(auto_positive_contacts);
ui.thresholdForPositive_SB->setValue(threshold_for_positive);
ui.thresholdForNegative_SB->setValue(threshold_for_negative);
ui.deleteBannedIdentitiesAfter_SB->setValue(rsIdentity->deleteBannedNodesThreshold());
ui.preventReloadingBannedIdentitiesFor_SB->setValue(rsReputations->rememberDeletedNodesThreshold());
whileBlocking(ui.autoPositiveOpinion_CB)->setChecked(auto_positive_contacts);
whileBlocking(ui.thresholdForPositive_SB)->setValue(threshold_for_positive);
whileBlocking(ui.thresholdForNegative_SB)->setValue(threshold_for_negative);
whileBlocking(ui.deleteBannedIdentitiesAfter_SB)->setValue(rsIdentity->deleteBannedNodesThreshold());
whileBlocking(ui.preventReloadingBannedIdentitiesFor_SB)->setValue(rsReputations->rememberDeletedNodesThreshold());
}

View File

@ -5,6 +5,7 @@
#include <QDesktopServices>
#include <QUrl>
#include "util/misc.h"
#include "api/ApiServer.h"
#include "api/ApiServerMHD.h"
#include "api/ApiServerLocal.h"
@ -63,10 +64,10 @@ bool WebuiPage::updateParams(QString &errmsg)
void WebuiPage::load()
{
std::cerr << "WebuiPage::load()" << std::endl;
ui.enableWebUI_CB->setChecked(Settings->getWebinterfaceEnabled());
whileBlocking(ui.enableWebUI_CB)->setChecked(Settings->getWebinterfaceEnabled());
onEnableCBClicked(Settings->getWebinterfaceEnabled());
ui.port_SB->setValue(Settings->getWebinterfacePort());
ui.allIp_CB->setChecked(Settings->getWebinterfaceAllowAllIps());
whileBlocking(ui.port_SB)->setValue(Settings->getWebinterfacePort());
whileBlocking(ui.allIp_CB)->setChecked(Settings->getWebinterfaceAllowAllIps());
}
QString WebuiPage::helpText() const