summaryrefslogtreecommitdiffstats
path: root/ksmserver
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-08 21:02:38 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-06-09 14:33:57 +0200
commitf9e6898036e2521a695c27a87aeb90d71afbadaa (patch)
tree1940c9ea5f1d3aee0a19beacc5a061e674ff729f /ksmserver
parent1dcd235e7edf389632143236db9a69191f31308a (diff)
downloadtdebase-f9e6898036e2521a695c27a87aeb90d71afbadaa.tar.gz
tdebase-f9e6898036e2521a695c27a87aeb90d71afbadaa.zip
Add check box control to enable/disable the session exit (feedback)
dialog box. This resolves bug report 681. (cherry picked from commit 8a61818a86d7d7f6b6332790d80b50a8b3a73146)
Diffstat (limited to 'ksmserver')
-rw-r--r--ksmserver/shutdown.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksmserver/shutdown.cpp b/ksmserver/shutdown.cpp
index e2e2d7cb1..fd1406c3d 100644
--- a/ksmserver/shutdown.cpp
+++ b/ksmserver/shutdown.cpp
@@ -160,10 +160,10 @@ void KSMServer::shutdownInternal( KApplication::ShutdownConfirm confirm,
if (sdmode == KApplication::ShutdownModeDefault)
sdmode = KApplication::ShutdownModeInteractive;
- // shall we show a nice fancy logout screen?
- bool showFancyLogout = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showFancyLogout", true);
+ // shall we show a logout status dialog box?
+ bool showLogoutStatusDlg = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showLogoutStatusDlg", true);
- if (showFancyLogout) {
+ if (showLogoutStatusDlg) {
KSMShutdownIPFeedback::start();
}
@@ -204,7 +204,7 @@ void KSMServer::shutdownInternal( KApplication::ShutdownConfirm confirm,
// Set the real desktop background to black so that exit looks
// clean regardless of what was on "our" desktop.
- if (!showFancyLogout) {
+ if (!showLogoutStatusDlg) {
TQT_TQWIDGET(kapp->desktop())->setBackgroundColor( Qt::black );
}
state = Shutdown;
@@ -244,7 +244,7 @@ void KSMServer::shutdownInternal( KApplication::ShutdownConfirm confirm,
completeShutdownOrCheckpoint();
}
else {
- if (showFancyLogout) {
+ if (showLogoutStatusDlg) {
KSMShutdownIPFeedback::stop();
}
}
@@ -494,8 +494,8 @@ void KSMServer::completeShutdownOrCheckpoint()
if ( waitForPhase2 )
return;
- bool showFancyLogout = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showFancyLogout", true);
- if (showFancyLogout && state != Checkpoint) {
+ bool showLogoutStatusDlg = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showLogoutStatusDlg", true);
+ if (showLogoutStatusDlg && state != Checkpoint) {
KSMShutdownIPFeedback::showit(); // hide the UGLY logout process from the user
shutdownNotifierIPDlg = KSMShutdownIPDlg::showShutdownIP();
while (!KSMShutdownIPFeedback::ispainted()) {