diff --git a/retroshare-gui/src/gui/settings/PeoplePage.cpp b/retroshare-gui/src/gui/settings/PeoplePage.cpp index 8f95b2b2f..ae19b6259 100644 --- a/retroshare-gui/src/gui/settings/PeoplePage.cpp +++ b/retroshare-gui/src/gui/settings/PeoplePage.cpp @@ -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()); } diff --git a/retroshare-gui/src/gui/settings/WebuiPage.cpp b/retroshare-gui/src/gui/settings/WebuiPage.cpp index 4afad5968..d7e35c381 100644 --- a/retroshare-gui/src/gui/settings/WebuiPage.cpp +++ b/retroshare-gui/src/gui/settings/WebuiPage.cpp @@ -5,6 +5,7 @@ #include #include +#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