summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbdurrahman AVCI <abdurrahmanavci@gmail.com>2010-05-14 11:00:13 +0300
committerAbdurrahman AVCI <abdurrahmanavci@gmail.com>2010-05-14 11:00:13 +0300
commit12c3ad66038f623a704dfacad09b36b79cf0b00f (patch)
treedf67a8ba44f1ab7b3959f7badd4e81c5821cdbd9 /src
parentMerge branch 'FixBlocks' (diff)
downloadrekonq-12c3ad66038f623a704dfacad09b36b79cf0b00f.tar.xz
Disable ad block related widgets when ad blocking is disabled.
Diffstat (limited to 'src')
-rw-r--r--src/settings/adblockwidget.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/settings/adblockwidget.cpp b/src/settings/adblockwidget.cpp
index 412f03d9..a703fe09 100644
--- a/src/settings/adblockwidget.cpp
+++ b/src/settings/adblockwidget.cpp
@@ -108,6 +108,9 @@ void AdBlockWidget::load()
{
bool isAdBlockEnabled = ReKonfig::adBlockEnabled();
checkEnableAdblock->setChecked(isAdBlockEnabled);
+ // update enabled status
+ checkHideAds->setEnabled(checkEnableAdblock->isChecked());
+ tabWidget->setEnabled(checkEnableAdblock->isChecked());
bool areImageFiltered = ReKonfig::hideAdsEnabled();
checkHideAds->setChecked(areImageFiltered);
@@ -181,6 +184,9 @@ void AdBlockWidget::save()
void AdBlockWidget::hasChanged()
{
+ // update enabled status
+ checkHideAds->setEnabled(checkEnableAdblock->isChecked());
+ tabWidget->setEnabled(checkEnableAdblock->isChecked());
_changed = true;
emit changed(true);
}