From afcfc2e072aea7fc5db849a4d32357eddd2a5449 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Wed, 31 Jul 2013 22:04:05 +0200 Subject: [PATCH] Fix "Suspend to disk" option display --- src/hardware.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {