summaryrefslogtreecommitdiffstats
path: root/ksmserver/shutdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksmserver/shutdown.cpp')
-rw-r--r--ksmserver/shutdown.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ksmserver/shutdown.cpp b/ksmserver/shutdown.cpp
index 549fd2cc3..a153b2806 100644
--- a/ksmserver/shutdown.cpp
+++ b/ksmserver/shutdown.cpp
@@ -188,7 +188,7 @@ void KSMServer::shutdownInternal( KApplication::ShutdownConfirm confirm,
if (showFancyLogout) {
KSMShutdownIPFeedback::showit(); // hide the UGLY logout process from the user
- KSMShutdownIPDlg::showShutdownIP();
+ shutdownNotifierIPDlg = KSMShutdownIPDlg::showShutdownIP();
}
if ( saveSession )
@@ -553,6 +553,10 @@ void KSMServer::killWM()
{
state = KillingWM;
bool iswm = false;
+ if (shutdownNotifierIPDlg) {
+ shutdownNotifierIPDlg->close();
+ shutdownNotifierIPDlg=0;
+ }
for ( KSMClient* c = clients.first(); c; c = clients.next() ) {
if( isWM( c )) {
iswm = true;