summaryrefslogtreecommitdiffstats
path: root/kdesktop
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-21 17:34:23 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-21 17:34:23 +0000
commitcc0aef7dbfc211d32dd90d903f910f4454d86f59 (patch)
tree896981c26e65e1805ffbf3bcd405e37db93b215f /kdesktop
parent759a6d228ec6111691d6c0b90c401c2ce82a4c59 (diff)
downloadtdebase-cc0aef7dbfc211d32dd90d903f910f4454d86f59.tar.gz
tdebase-cc0aef7dbfc211d32dd90d903f910f4454d86f59.zip
Close kdesktop_lock windows on SIGTERM
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1254851 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesktop')
-rw-r--r--kdesktop/lock/lockprocess.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc
index 271581dff..c8681c6df 100644
--- a/kdesktop/lock/lockprocess.cc
+++ b/kdesktop/lock/lockprocess.cc
@@ -603,6 +603,10 @@ bool LockProcess::dontLock()
//---------------------------------------------------------------------------
void LockProcess::quitSaver()
{
+ if (closeCurrentWindow()) {
+ TQTimer::singleShot( 0, this, SLOT(quitSaver()) );
+ return;
+ }
stopSaver();
kapp->quit();
}