summaryrefslogtreecommitdiffstats
path: root/kcontrol/smserver/kcmsmserver.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-08 21:02:38 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-06-08 21:02:38 -0500
commit8a61818a86d7d7f6b6332790d80b50a8b3a73146 (patch)
tree8f6a474c1f659a5cd2435744bd02b4ecea5b54c4 /kcontrol/smserver/kcmsmserver.cpp
parent5b597230f0b8f2aed44816ffc3ef5d6f01ef44c5 (diff)
downloadtdebase-8a61818a86d7d7f6b6332790d80b50a8b3a73146.tar.gz
tdebase-8a61818a86d7d7f6b6332790d80b50a8b3a73146.zip
Add check box control to enable/disable the session exit (feedback)
dialog box. This resolves bug report 681.
Diffstat (limited to 'kcontrol/smserver/kcmsmserver.cpp')
-rw-r--r--kcontrol/smserver/kcmsmserver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/kcontrol/smserver/kcmsmserver.cpp b/kcontrol/smserver/kcmsmserver.cpp
index e1d22cf51..5ea993964 100644
--- a/kcontrol/smserver/kcmsmserver.cpp
+++ b/kcontrol/smserver/kcmsmserver.cpp
@@ -92,6 +92,9 @@ void SMServerConfig::load(bool useDefaults )
}
dialog->excludeLineedit->setText( c->readEntry("excludeApps"));
+ c->setGroup("Logout");
+ dialog->showLogoutStatusDialog->setChecked(c->readBoolEntry("showLogoutStatusDlg", true));
+
delete c;
emit changed(useDefaults);
@@ -103,6 +106,7 @@ void SMServerConfig::save()
c->setGroup("General");
c->writeEntry( "confirmLogout", dialog->confirmLogoutCheck->isChecked());
c->writeEntry( "offerShutdown", dialog->offerShutdownCheck->isChecked());
+
TQString s = "restorePreviousLogout";
if ( dialog->emptySessionRadio->isChecked() )
s = "default";
@@ -117,6 +121,8 @@ void SMServerConfig::save()
int(KApplication::ShutdownTypeReboot) :
int(KApplication::ShutdownTypeNone));
c->writeEntry("excludeApps", dialog->excludeLineedit->text());
+ c->setGroup("Logout");
+ c->writeEntry( "showLogoutStatusDlg", dialog->showLogoutStatusDialog->isChecked());
c->sync();
delete c;