diff options
author | Abdurrahman AVCI <abdurrahmanavci@gmail.com> | 2010-05-14 11:00:13 +0300 |
---|---|---|
committer | Abdurrahman AVCI <abdurrahmanavci@gmail.com> | 2010-05-14 11:00:13 +0300 |
commit | 12c3ad66038f623a704dfacad09b36b79cf0b00f (patch) | |
tree | df67a8ba44f1ab7b3959f7badd4e81c5821cdbd9 | |
parent | Merge branch 'FixBlocks' (diff) | |
download | rekonq-12c3ad66038f623a704dfacad09b36b79cf0b00f.tar.xz |
Disable ad block related widgets when ad blocking is disabled.
-rw-r--r-- | src/settings/adblockwidget.cpp | 6 |
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); } |