summaryrefslogtreecommitdiff
path: root/src/settings/generalwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/generalwidget.cpp')
-rw-r--r--src/settings/generalwidget.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/settings/generalwidget.cpp b/src/settings/generalwidget.cpp
index 9f6de0d5..0b11c3f5 100644
--- a/src/settings/generalwidget.cpp
+++ b/src/settings/generalwidget.cpp
@@ -52,11 +52,20 @@ GeneralWidget::GeneralWidget(QWidget *parent)
connect(kcfg_useNewTabPage, SIGNAL(toggled(bool)), this, SLOT(disableHomeSettings(bool)));
checkKGetPresence();
+
+ KConfigGroup cg = KConfigGroup(KSharedConfig::openConfig("kioslaverc", KConfig::NoGlobals), QString());
+ doNotTrackCheckBox->setChecked( cg.readEntry("DoNotTrack", false) );
+
+ connect(doNotTrackCheckBox, SIGNAL(clicked()), this, SLOT(hasChanged()));
}
void GeneralWidget::save()
{
+ KConfigGroup cg = KConfigGroup(KSharedConfig::openConfig("kioslaverc", KConfig::NoGlobals), QString());
+ cg.writeEntry("DoNotTrack", doNotTrackCheckBox->isChecked());
+ cg.sync();
+ kDebug() << "-------------------------------------" << doNotTrackCheckBox->isChecked();
}
@@ -68,6 +77,8 @@ bool GeneralWidget::changed()
void GeneralWidget::hasChanged()
{
+ _changed = true;
+ emit changed(true);
}
@@ -88,6 +99,7 @@ void GeneralWidget::disableHomeSettings(bool b)
setHomeToCurrentPageButton->setEnabled(!b);
}
+
void GeneralWidget::checkKGetPresence()
{
if(KStandardDirs::findExe("kget").isNull())