summaryrefslogtreecommitdiffstats
path: root/src/tdepowersave.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2016-05-06 18:20:22 +1000
committerMichele Calgaro <[email protected]>2016-05-06 18:20:22 +1000
commit676fba0b9f08d41e68b115bc91931b5d0aa53376 (patch)
tree3cb909493c2e4337cd82f3ba7fb4e5291d20165f /src/tdepowersave.cpp
parentfab0d1579f8be4859958217e7b632acfbf191de2 (diff)
downloadtdepowersave-676fba0b9f08d41e68b115bc91931b5d0aa53376.tar.gz
tdepowersave-676fba0b9f08d41e68b115bc91931b5d0aa53376.zip
Fixed autosuspend functionality broken by commit fab0d15. This relates to bug 2632.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/tdepowersave.cpp')
-rw-r--r--src/tdepowersave.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tdepowersave.cpp b/src/tdepowersave.cpp
index b9f6f1d..d214a3b 100644
--- a/src/tdepowersave.cpp
+++ b/src/tdepowersave.cpp
@@ -986,20 +986,20 @@ void tdepowersave::do_autosuspendWarn() {
/*!
* \b TQT_SLOT to send the related suspend command for autosuspend
- * \param chancel boolean with info if the autosuspend should get canceled
+ * \param cancel boolean with info if the autosuspend should get canceled
* \return boolean with the result of the operation
* \retval true if successful
* \retval false if command not supported or on any other error
* \todo add check if the requested command is supported before send and
* add message for this case to tell that maybe changed config!
*/
-bool tdepowersave::do_autosuspend(bool chancel) {
+bool tdepowersave::do_autosuspend(bool cancel) {
kdDebugFuncIn(trace);
// TODO: check if this is really needed, it get called also on the suspend methodes
autoSuspend->stop();
- if (!chancel) {
+ if (!cancel) {
if(!settings->disableNotifications) {
KNotifyClient::event( this->winId(), "autosuspend_event",
i18n("System is going into suspend mode now"));