Commit 34ff02e3 authored by Laurent Montel's avatar Laurent Montel 😁

We need to load value not saving it

parent c3d85469
......@@ -205,7 +205,7 @@ void AdBlockSettingWidget::doResetToDefaultsOther()
const bool bUseDefaults = AdBlock::AdBlockSettings::self()->useDefaults(true);
loadWidget(mUi->checkEnableAdblock, AdBlock::AdBlockSettings::self()->adBlockEnabledItem());
mUi->tabWidget->setEnabled(AdBlock::AdBlockSettings::self()->adBlockEnabled());
saveCheckBox(mUi->checkHideAds, AdBlock::AdBlockSettings::self()->hideAdsEnabledItem());
loadWidget(mUi->checkHideAds, AdBlock::AdBlockSettings::self()->hideAdsEnabledItem());
loadWidget(mUi->spinBox, AdBlock::AdBlockSettings::self()->adBlockUpdateIntervalItem());
AdBlock::AdBlockSettings::self()->useDefaults(bUseDefaults);
}
......
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