Fix "Suspend to disk" option display

pull/1/head
Francois Andriot 11 years ago committed by Slávek Banko
parent 933e53832e
commit afcfc2e072

@ -546,7 +546,7 @@ void HardwareInfo::checkSuspend() {
} }
if ((*it) == TDESystemPowerState::Hibernate) { if ((*it) == TDESystemPowerState::Hibernate) {
suspend_states.suspend2disk = true; 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; suspend_states.suspend2disk_can = suspend_states.suspend2disk_allowed & suspend_states.suspend2disk;
} }
if ((*it) == TDESystemPowerState::PowerOff) { if ((*it) == TDESystemPowerState::PowerOff) {

Loading…
Cancel
Save