From 2d39afad2b6f76980365949f566ec7b8abdca804 Mon Sep 17 00:00:00 2001 From: Volker Lanz Date: Thu, 20 May 2010 20:56:54 +0000 Subject: [PATCH] suppressing sleep only works as long as we're not root. that's hardly helpful. svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1128987 --- src/core/operationrunner.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/core/operationrunner.cpp b/src/core/operationrunner.cpp index 6ecdc00..d1ce93f 100644 --- a/src/core/operationrunner.cpp +++ b/src/core/operationrunner.cpp @@ -29,11 +29,6 @@ #include #include -#include -#include -#include - -#include /** 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", "%1 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())