summaryrefslogtreecommitdiffstats
path: root/kcontrol/tdm/tdm-appear.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/tdm/tdm-appear.cpp')
-rw-r--r--kcontrol/tdm/tdm-appear.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/kcontrol/tdm/tdm-appear.cpp b/kcontrol/tdm/tdm-appear.cpp
index 8d3f848b5..cfd008481 100644
--- a/kcontrol/tdm/tdm-appear.cpp
+++ b/kcontrol/tdm/tdm-appear.cpp
@@ -479,6 +479,8 @@ void TDMAppearanceWidget::save()
if (!sakwarning) {
config->setGroup("X-:*-Greeter");
config->writeEntry("UseSAK", sakbox->isChecked());
+ config->setGroup("X-*-Greeter");
+ config->deleteEntry("UseSAK");
}
// Enable/disable tsak as needed
@@ -547,7 +549,12 @@ void TDMAppearanceWidget::load()
// See if the SAK is enabled
if (!sakwarning) {
- config->setGroup("X-:*-Greeter");
+ if (config->hasGroup("X-:*-Greeter")) {
+ config->setGroup("X-:*-Greeter");
+ }
+ else {
+ config->setGroup("X-*-Greeter");
+ }
sakbox->setChecked(config->readBoolEntry("UseSAK", false));
}
else {