summaryrefslogtreecommitdiff
path: root/src/adblock/blockedelementswidget.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-03-06 10:56:47 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-03-13 10:24:42 +0100
commit5a7a48e488645bebd09eb51fd9236dc734f29fd4 (patch)
tree3e8c34c3bb22779554c4972a3eee08595bd8ae4f /src/adblock/blockedelementswidget.cpp
parentupdate adblockrc (diff)
downloadrekonq-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.cpp5
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;
}