summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-11-11 21:43:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-02-13 18:05:37 +0900
commit1e1f49f330cbf89ad36c71517b71bf6d2c631fe7 (patch)
tree1aec6bda1889654d1dcfbb55b7c5fc8e53364667
parent359dc4faf49d8087260ac3a7110025491c9663c1 (diff)
downloadtdebase-1e1f49f330cbf89ad36c71517b71bf6d2c631fe7.tar.gz
tdebase-1e1f49f330cbf89ad36c71517b71bf6d2c631fe7.zip
Minor fix up: standby option was missing in one point.feat/fix-suspend-code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--ksmserver/shutdown.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/ksmserver/shutdown.cpp b/ksmserver/shutdown.cpp
index 8b14ceaf1..c0c567cdd 100644
--- a/ksmserver/shutdown.cpp
+++ b/ksmserver/shutdown.cpp
@@ -248,15 +248,18 @@ void KSMServer::shutdownInternal( TDEApplication::ShutdownConfirm confirm,
case SuspendType::Freeze:
rootDevice->setPowerState(TDESystemPowerState::Freeze);
break;
+ case SuspendType::Standby:
+ rootDevice->setPowerState(TDESystemPowerState::Standby);
+ break;
case SuspendType::Suspend:
rootDevice->setPowerState(TDESystemPowerState::Suspend);
break;
- case SuspendType::Hibernate:
- rootDevice->setPowerState(TDESystemPowerState::Hibernate);
- break;
case SuspendType::HybridSuspend:
rootDevice->setPowerState(TDESystemPowerState::HybridSuspend);
break;
+ case SuspendType::Hibernate:
+ rootDevice->setPowerState(TDESystemPowerState::Hibernate);
+ break;
}
}
#endif