summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-10-11 19:04:41 -0500
committerSlávek Banko <slavek.banko@axis.cz>2015-10-12 03:33:14 +0200
commit15d41e47bbb534f5fe6eb33809ee8d311070ea12 (patch)
tree6537734dc4b2f993ce7c5b8b0e7501ba633ac713
parent405d9087ce6f45150e2a94580def88624ac6121c (diff)
downloadtdebase-15d41e47bbb534f5fe6eb33809ee8d311070ea12.tar.gz
tdebase-15d41e47bbb534f5fe6eb33809ee8d311070ea12.zip
Fix SAK enable / disable checkbox in TDM TDEControl module
(cherry picked from commit 812398d8201533dee35c1b4d2a20b064a322cbdc)
-rw-r--r--kcontrol/tdm/tdm-appear.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/kcontrol/tdm/tdm-appear.cpp b/kcontrol/tdm/tdm-appear.cpp
index 8d3f848b5..cab603242 100644
--- a/kcontrol/tdm/tdm-appear.cpp
+++ b/kcontrol/tdm/tdm-appear.cpp
@@ -477,7 +477,12 @@ void TDMAppearanceWidget::save()
config->writeEntry("Language", langcombo->current());
if (!sakwarning) {
- config->setGroup("X-:*-Greeter");
+ if (config->hasGroup("X-:*-Greeter")) {
+ config->setGroup("X-:*-Greeter");
+ }
+ else {
+ config->setGroup("X-*-Greeter");
+ }
config->writeEntry("UseSAK", sakbox->isChecked());
}
@@ -547,7 +552,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 {