|
Lines 160-169
Link Here
|
| 160 |
if (sdmode == KApplication::ShutdownModeDefault) |
160 |
if (sdmode == KApplication::ShutdownModeDefault) |
| 161 |
sdmode = KApplication::ShutdownModeInteractive; |
161 |
sdmode = KApplication::ShutdownModeInteractive; |
| 162 |
|
162 |
|
| 163 |
// shall we show a nice fancy logout screen? |
163 |
// shall we show a logout feedback dialog box? |
| 164 |
bool showFancyLogout = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showFancyLogout", true); |
164 |
bool showFeedbackDlg = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showFeedbackDlg", true); |
| 165 |
|
165 |
|
| 166 |
if (showFancyLogout) { |
166 |
if (showFeedbackDlg) { |
| 167 |
KSMShutdownIPFeedback::start(); |
167 |
KSMShutdownIPFeedback::start(); |
| 168 |
} |
168 |
} |
| 169 |
|
169 |
|
|
Lines 189-195
Link Here
|
| 189 |
// shall we save the session on logout? |
189 |
// shall we save the session on logout? |
| 190 |
saveSession = ( config->readEntry( "loginMode", "restorePreviousLogout" ) == "restorePreviousLogout" ); |
190 |
saveSession = ( config->readEntry( "loginMode", "restorePreviousLogout" ) == "restorePreviousLogout" ); |
| 191 |
|
191 |
|
| 192 |
if (showFancyLogout) { |
192 |
if (showFeedbackDlg) { |
| 193 |
KSMShutdownIPFeedback::showit(); // hide the UGLY logout process from the user |
193 |
KSMShutdownIPFeedback::showit(); // hide the UGLY logout process from the user |
| 194 |
shutdownNotifierIPDlg = KSMShutdownIPDlg::showShutdownIP(); |
194 |
shutdownNotifierIPDlg = KSMShutdownIPDlg::showShutdownIP(); |
| 195 |
while (!KSMShutdownIPFeedback::ispainted()) { |
195 |
while (!KSMShutdownIPFeedback::ispainted()) { |
|
Lines 212-218
Link Here
|
| 212 |
|
212 |
|
| 213 |
// Set the real desktop background to black so that exit looks |
213 |
// Set the real desktop background to black so that exit looks |
| 214 |
// clean regardless of what was on "our" desktop. |
214 |
// clean regardless of what was on "our" desktop. |
| 215 |
if (!showFancyLogout) { |
215 |
if (!showFeedbackDlg) { |
| 216 |
TQT_TQWIDGET(kapp->desktop())->setBackgroundColor( Qt::black ); |
216 |
TQT_TQWIDGET(kapp->desktop())->setBackgroundColor( Qt::black ); |
| 217 |
} |
217 |
} |
| 218 |
state = Shutdown; |
218 |
state = Shutdown; |
|
Lines 252-258
Link Here
|
| 252 |
completeShutdownOrCheckpoint(); |
252 |
completeShutdownOrCheckpoint(); |
| 253 |
} |
253 |
} |
| 254 |
else { |
254 |
else { |
| 255 |
if (showFancyLogout) { |
255 |
if (showFeedbackDlg) { |
| 256 |
KSMShutdownIPFeedback::stop(); |
256 |
KSMShutdownIPFeedback::stop(); |
| 257 |
} |
257 |
} |
| 258 |
} |
258 |
} |