[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/powerdevil/daemon
From: Dario Freddi <drf () kde ! org>
Date: 2011-01-07 13:51:46
Message-ID: 20110107135146.D7E82AC8B0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1212573 by dafre:
Fix typo in the policy agent
M +3 -0 powerdevilaction.cpp
M +3 -1 powerdevilpolicyagent.cpp
--- trunk/KDE/kdebase/workspace/powerdevil/daemon/powerdevilaction.cpp #1212572:1212573
@@ -21,6 +21,8 @@
#include "powerdevilcore.h"
+#include <KDebug>
+
namespace PowerDevil
{
@@ -93,6 +95,7 @@
triggerImpl(args);
} else {
// TODO: Notify somehow?
+ kWarning() << "Unsatisfied policies, the action has been aborted";
}
}
}
--- trunk/KDE/kdebase/workspace/powerdevil/daemon/powerdevilpolicyagent.cpp #1212572:1212573
@@ -216,6 +216,8 @@
}
}
+ kDebug() << "Added inhibition with cookie " << m_lastCookie;
+
addInhibitionTypeHelper(m_lastCookie, static_cast< PolicyAgent::RequiredPolicies >(types));
return m_lastCookie;
@@ -239,7 +241,7 @@
}
m_typesToCookie[ChangeScreenSettings].append(cookie);
}
- if (types & ChangeProfile) {
+ if (types & InterruptSession) {
// Check if we have to notify
if (m_typesToCookie[InterruptSession].isEmpty()) {
notify = true;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic