tdecore: complete previous commit, one file was forgotten by mistake.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 8 years ago
parent ba3ed714c6
commit a29712773b

@ -599,18 +599,21 @@ void TDERootSystemDevice::setHibernationMethod(TDESystemHibernationMethod::TDESy
if (hm == TDESystemHibernationMethod::Platform) {
hibernationCommand = "platform";
}
if (hm == TDESystemHibernationMethod::Shutdown) {
else if (hm == TDESystemHibernationMethod::Shutdown) {
hibernationCommand = "shutdown";
}
if (hm == TDESystemHibernationMethod::Reboot) {
else if (hm == TDESystemHibernationMethod::Reboot) {
hibernationCommand = "reboot";
}
if (hm == TDESystemHibernationMethod::TestProc) {
else if (hm == TDESystemHibernationMethod::TestProc) {
hibernationCommand = "testproc";
}
if (hm == TDESystemHibernationMethod::Test) {
else if (hm == TDESystemHibernationMethod::Test) {
hibernationCommand = "test";
}
else if (hm == TDESystemHibernationMethod::Suspend) {
hibernationCommand = "suspend";
}
TQTextStream stream( &file );
stream << hibernationCommand;
file.close();
@ -629,18 +632,21 @@ void TDERootSystemDevice::setHibernationMethod(TDESystemHibernationMethod::TDESy
if (hm == TDESystemHibernationMethod::Platform) {
hibernationCommand = "platform";
}
if (hm == TDESystemHibernationMethod::Shutdown) {
else if (hm == TDESystemHibernationMethod::Shutdown) {
hibernationCommand = "shutdown";
}
if (hm == TDESystemHibernationMethod::Reboot) {
else if (hm == TDESystemHibernationMethod::Reboot) {
hibernationCommand = "reboot";
}
if (hm == TDESystemHibernationMethod::TestProc) {
else if (hm == TDESystemHibernationMethod::TestProc) {
hibernationCommand = "testproc";
}
if (hm == TDESystemHibernationMethod::Test) {
else if (hm == TDESystemHibernationMethod::Test) {
hibernationCommand = "test";
}
else if (hm == TDESystemHibernationMethod::Suspend) {
hibernationCommand = "suspend";
}
params << TQT_DBusData::fromString(hibernationCommand);
TQT_DBusMessage reply = hardwareControl.sendWithReply("SetHibernationMethod", params);
if (reply.type() == TQT_DBusMessage::ReplyMessage) {

Loading…
Cancel
Save