summaryrefslogtreecommitdiffstats
path: root/ksmserver/shutdown.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-09-22 14:57:26 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-09-22 14:57:26 +0200
commit7d335195a06f3453de82ee870c699652a55a2bfd (patch)
treebe80ab7c4b5531439947e939bf0070377d3365ec /ksmserver/shutdown.cpp
parent19b918348907ac2f8bf0307d601bea26e774e6c0 (diff)
downloadtdebase-7d335195a06f3453de82ee870c699652a55a2bfd.tar.gz
tdebase-7d335195a06f3453de82ee870c699652a55a2bfd.zip
Add support for freeze suspend state
Diffstat (limited to 'ksmserver/shutdown.cpp')
-rw-r--r--ksmserver/shutdown.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ksmserver/shutdown.cpp b/ksmserver/shutdown.cpp
index 32e7c3b19..12743e892 100644
--- a/ksmserver/shutdown.cpp
+++ b/ksmserver/shutdown.cpp
@@ -247,6 +247,9 @@ void KSMServer::shutdownInternal( TDEApplication::ShutdownConfirm confirm,
if (selection == 2) { // Hibernate
rootDevice->setPowerState(TDESystemPowerState::Hibernate);
}
+ if (selection == 3) { // Freeze
+ rootDevice->setPowerState(TDESystemPowerState::Freeze);
+ }
}
}
}