summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <[email protected]>2017-04-14 15:30:59 +0200
committerLuboš Luňák <[email protected]>2017-04-14 15:33:38 +0200
commit616f57aecf6193efc333174360190549e2e4dcdb (patch)
tree62e47e9bf6b403f39a03e80bfc46eb9448ac9b0a
parent36e1172a98515ed690e45ec1d143bae0684162f0 (diff)
re-enable the 'logout cancelled by <app>' notification
81fcdb0ceef4a92b64c84e535bd852d9c5df67a2 (in kde-workspace) commented this out while removing other uses of KNotification, but this one is actually useful (especially if a app misbehaves) and certainly belong in ksmserver and not elsewhere.
-rw-r--r--ksmserver/shutdown.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ksmserver/shutdown.cpp b/ksmserver/shutdown.cpp
index a44deb0..9f29028 100644
--- a/ksmserver/shutdown.cpp
+++ b/ksmserver/shutdown.cpp
@@ -478,9 +478,9 @@ void KSMServer::cancelShutdown( KSMClient* c )
} else {
Solid::PowerManagement::stopSuppressingSleep(inhibitCookie);
qCDebug(KSMSERVER) << "Client " << c->program() << " (" << c->clientId() << ") canceled shutdown.";
-// KNotification::event( QStringLiteral( "cancellogout" ),
-// i18n( "Logout canceled by '%1'", c->program()),
-// QPixmap() , 0l , KNotification::DefaultEvent );
+ KNotification::event( QStringLiteral( "cancellogout" ),
+ i18n( "Logout canceled by '%1'", c->program()),
+ QPixmap() , 0l , KNotification::DefaultEvent );
foreach( KSMClient* c, clients ) {
SmsShutdownCancelled( c->connection() );
if( c->saveYourselfDone ) {