summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2013-07-31 22:04:05 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-31 22:04:16 +0200
commitafcfc2e072aea7fc5db849a4d32357eddd2a5449 (patch)
tree68de4f3f07f671df55b058d99cafcdee49299122 /src
parent933e53832eeb45c6f660dcf46bed5dc68aaf24c2 (diff)
downloadtdepowersave-afcfc2e072aea7fc5db849a4d32357eddd2a5449.tar.gz
tdepowersave-afcfc2e072aea7fc5db849a4d32357eddd2a5449.zip
Fix "Suspend to disk" option display
Diffstat (limited to 'src')
-rw-r--r--src/hardware.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hardware.cpp b/src/hardware.cpp
index d296476..3b7f214 100644
--- a/src/hardware.cpp
+++ b/src/hardware.cpp
@@ -546,7 +546,7 @@ void HardwareInfo::checkSuspend() {
}
if ((*it) == TDESystemPowerState::Hibernate) {
suspend_states.suspend2disk = true;
- suspend_states.suspend2disk_allowed = rdevice->canSuspend();
+ suspend_states.suspend2disk_allowed = rdevice->canHibernate();
suspend_states.suspend2disk_can = suspend_states.suspend2disk_allowed & suspend_states.suspend2disk;
}
if ((*it) == TDESystemPowerState::PowerOff) {