From 96c46c4f95bc317b7742d1569672dc4310e17fe4 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 16 Sep 2011 07:01:21 +0000 Subject: Add task manager button to secure desktop dialog git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1253983 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdesktop/lock/lockprocess.cc | 4 ++++ kdesktop/lock/securedlg.cc | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'kdesktop') diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc index 6b708801b..3ec3ad74b 100644 --- a/kdesktop/lock/lockprocess.cc +++ b/kdesktop/lock/lockprocess.cc @@ -619,6 +619,10 @@ void LockProcess::startSecureDialog() stopSaver(); mBusy = false; } + if (ret == 2) { + system("ksysguard &"); + kapp->quit(); + } // FIXME // Handle remaining two cases (task manager and logoff menu) stopSaver(); diff --git a/kdesktop/lock/securedlg.cc b/kdesktop/lock/securedlg.cc index 6d6b6c3a0..ac3d3d113 100644 --- a/kdesktop/lock/securedlg.cc +++ b/kdesktop/lock/securedlg.cc @@ -96,7 +96,6 @@ SecureDlg::SecureDlg(LockProcess *parent) mTaskButton = new TQPushButton( frame ); mTaskButton->setText(i18n("Task Manager")); - mTaskButton->setEnabled(false); // FIXME mCancelButton = new TQPushButton( frame ); mCancelButton->setText(i18n("Cancel")); -- cgit v1.2.1