suppressing sleep only works as long as we're not root. that's hardly helpful.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1128987
This commit is contained in:
Volker Lanz 2010-05-20 20:56:54 +00:00
parent a59062f073
commit 2d39afad2b
1 changed files with 0 additions and 11 deletions

View File

@ -29,11 +29,6 @@
#include <kdebug.h>
#include <klocale.h>
#include <kglobal.h>
#include <kcomponentdata.h>
#include <kaboutdata.h>
#include <solid/powermanagement.h>
/** Constructs an OperationRunner.
@param ostack the OperationStack to act on
@ -56,9 +51,6 @@ void OperationRunner::run()
bool status = true;
int suppressCookie = Solid::PowerManagement::beginSuppressingSleep(i18nc("@info Reason why sleep mode is suppressed", "<application>%1</application> is performing operations.", KGlobal::mainComponent().aboutData()->programName()));
kDebug() << suppressCookie;
for (int i = 0; i < numOperations(); i++)
{
suspendMutex().lock();
@ -91,9 +83,6 @@ void OperationRunner::run()
msleep(5);
}
if (suppressCookie != -1)
Solid::PowerManagement::stopSuppressingSleep(suppressCookie);
if (!status)
emit error();
else if (isCancelling())