diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-08-19 01:18:17 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-08-19 01:18:17 +0200 |
commit | b56648b2d624ad5933bbfae0dcac6f65bb96bd3b (patch) | |
tree | e86423eb28a17d5c2e3c9d977ebd05026767d962 /src/adblock/adblockwidget.cpp | |
parent | fixes wrong comment in rekonqui.rc that could lead to a parsing error that le... (diff) | |
download | rekonq-b56648b2d624ad5933bbfae0dcac6f65bb96bd3b.tar.xz |
Fix saving in adblock management
This original patch from fritz_van_tom has been modified by me
to fix a couple of "obsoleted" things not removed in the
previous changes.
My fault for them (and for the need of this patch), sorry.
REVIEW: 102362
Diffstat (limited to 'src/adblock/adblockwidget.cpp')
-rw-r--r-- | src/adblock/adblockwidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adblock/adblockwidget.cpp b/src/adblock/adblockwidget.cpp index 29281786..a5153f98 100644 --- a/src/adblock/adblockwidget.cpp +++ b/src/adblock/adblockwidget.cpp @@ -159,6 +159,9 @@ void AdBlockWidget::loadRules(QTreeWidgetItem *item) void AdBlockWidget::save() { + if (!_changed) + return; + // local rules KSharedConfig::Ptr config = KSharedConfig::openConfig("adblock", KConfig::SimpleConfig, "appdata"); KConfigGroup localGroup(config , "rules"); |