summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamarque V. Souza <lamarque@gmail.com>2011-03-11 21:08:45 (GMT)
committerLamarque V. Souza <lamarque@gmail.com>2011-03-11 21:08:45 (GMT)
commit0069abf1e4531df4389add699ff048f2a2776d41 (patch)
tree64e7db1cb31b1de9ffffaa831375d9527db29742
parent8ee1461949e387e254e67dad17b013cb52741279 (diff)
iSend the correct suspend type mode for suspendSession action.
BUG: 268149 FIXED-IN: 4.6.2
-rw-r--r--powerdevil/daemon/actions/bundled/handlebuttonevents.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/powerdevil/daemon/actions/bundled/handlebuttonevents.cpp b/powerdevil/daemon/actions/bundled/handlebuttonevents.cpp
index ba8eaa9..51c9028 100644
--- a/powerdevil/daemon/actions/bundled/handlebuttonevents.cpp
+++ b/powerdevil/daemon/actions/bundled/handlebuttonevents.cpp
@@ -116,7 +116,9 @@ void HandleButtonEvents::triggerImpl(const QVariantMap& args)
{
// For now, let's just accept the phantomatic "32" button.
if (args["Button"].toInt() == 32) {
- triggerAction("SuspendSession", args["Button"]);
+ if (args.contains("Type")) {
+ triggerAction("SuspendSession", args["Type"]);
+ }
}
}