summaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-14 01:07:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-14 01:07:14 +0200
commit50f91796e0c4a4d23b4961fbc775a762f4ea3909 (patch)
tree1ea0d7daa8d1c4c829a780d5af2fb540f02f84ec /src/settings
parentAdBlock clean up, step 1 (diff)
downloadrekonq-50f91796e0c4a4d23b4961fbc775a762f4ea3909.tar.xz
Move adblock rules conf file to appdata, to maintain central config file tiny
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/adblockwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings/adblockwidget.cpp b/src/settings/adblockwidget.cpp
index 59cb8a81..412f03d9 100644
--- a/src/settings/adblockwidget.cpp
+++ b/src/settings/adblockwidget.cpp
@@ -126,7 +126,7 @@ void AdBlockWidget::load()
}
// load local rules
- KSharedConfig::Ptr config = KGlobal::config();
+ KSharedConfig::Ptr config = KSharedConfig::openConfig("adblock", KConfig::SimpleConfig, "appdata");
KConfigGroup localGroup(config, "rules");
QStringList rules = localGroup.readEntry("local-rules" , QStringList());
foreach(const QString &rule, rules)
@@ -138,7 +138,7 @@ void AdBlockWidget::load()
void AdBlockWidget::loadRules(QTreeWidgetItem *item)
{
- KSharedConfig::Ptr config = KGlobal::config();
+ KSharedConfig::Ptr config = KSharedConfig::openConfig("adblock", KConfig::SimpleConfig, "appdata");
KConfigGroup localGroup(config, "rules");
QString str = item->text(0) + "-rules";
@@ -157,7 +157,7 @@ void AdBlockWidget::save()
int n;
// local rules
- KSharedConfig::Ptr config = KGlobal::config();
+ KSharedConfig::Ptr config = KSharedConfig::openConfig("adblock", KConfig::SimpleConfig, "appdata");
KConfigGroup localGroup(config , "rules");
QStringList localRules;