diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-03-06 10:56:47 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-03-13 10:24:42 +0100 |
commit | 5a7a48e488645bebd09eb51fd9236dc734f29fd4 (patch) | |
tree | 3e8c34c3bb22779554c4972a3eee08595bd8ae4f /src/adblock/blockedelementswidget.cpp | |
parent | update adblockrc (diff) | |
download | rekonq-5a7a48e488645bebd09eb51fd9236dc734f29fd4.tar.xz |
Clean up adblock manager code and fix unblock feature
Diffstat (limited to 'src/adblock/blockedelementswidget.cpp')
-rw-r--r-- | src/adblock/blockedelementswidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/adblock/blockedelementswidget.cpp b/src/adblock/blockedelementswidget.cpp index cdb40c27..58b96299 100644 --- a/src/adblock/blockedelementswidget.cpp +++ b/src/adblock/blockedelementswidget.cpp @@ -40,6 +40,7 @@ BlockedElementsWidget::BlockedElementsWidget(QObject *manager, QWidget *parent) : QWidget(parent) , _manager(manager) + , _reloadPage(false) { setupUi(this); } @@ -102,5 +103,7 @@ void BlockedElementsWidget::unblockElement() buttonClicked->setIcon(KIcon("dialog-ok")); AdBlockManager *m = qobject_cast<AdBlockManager *>(_manager); - m->addCustomRule("@@" + urlString); + m->addCustomRule(QL1S("@@") + urlString, false); + + _reloadPage = true; } |