From 15d41e47bbb534f5fe6eb33809ee8d311070ea12 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 11 Oct 2015 19:04:41 -0500 Subject: Fix SAK enable / disable checkbox in TDM TDEControl module (cherry picked from commit 812398d8201533dee35c1b4d2a20b064a322cbdc) --- kcontrol/tdm/tdm-appear.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'kcontrol/tdm') 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 { -- cgit v1.2.1