From 8a61818a86d7d7f6b6332790d80b50a8b3a73146 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Fri, 8 Jun 2012 21:02:38 -0500 Subject: Add check box control to enable/disable the session exit (feedback) dialog box. This resolves bug report 681. --- kcontrol/smserver/kcmsmserver.cpp | 6 ++++++ kcontrol/smserver/smserverconfigdlg.ui | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) (limited to 'kcontrol') 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; diff --git a/kcontrol/smserver/smserverconfigdlg.ui b/kcontrol/smserver/smserverconfigdlg.ui index 079fb8908..8ab9801cf 100644 --- a/kcontrol/smserver/smserverconfigdlg.ui +++ b/kcontrol/smserver/smserverconfigdlg.ui @@ -62,6 +62,17 @@ O&ffer shutdown options + + + showLogoutStatusDialog + + + Show logout stat&us dialog + + + Check this option if you want to see a dialog box showing the logout status. + + @@ -206,6 +217,12 @@ SMServerConfigDlg configChanged() + + showLogoutStatusDialog + toggled(bool) + SMServerConfigDlg + configChanged() + loginGroup clicked(int) -- cgit v1.2.1