diff options
Diffstat (limited to 'kdesktop/lock')
-rw-r--r-- | kdesktop/lock/lockprocess.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc index c8681c6df..93fe4d9ae 100644 --- a/kdesktop/lock/lockprocess.cc +++ b/kdesktop/lock/lockprocess.cc @@ -316,9 +316,11 @@ static int signal_pipe[2]; static void sigterm_handler(int) { - char tmp = 'T'; - if (::write( signal_pipe[1], &tmp, 1) == -1) { - // Error handler to shut up gcc warnings + if (!trinity_desktop_lock_in_sec_dlg) { + char tmp = 'T'; + if (::write( signal_pipe[1], &tmp, 1) == -1) { + // Error handler to shut up gcc warnings + } } } @@ -657,7 +659,7 @@ void LockProcess::startSecureDialog() kapp->quit(); } // FIXME - // Handle remaining two cases (task manager and logoff menu) + // Handle remaining two cases (logoff menu and switch user) stopSaver(); } |