Fix detection possibility of setting cpu governor and brightness using tdehwlib-daemon

pull/16/head
Slávek Banko 11 years ago
parent ef6c5d6fcb
commit c702442118

@ -82,7 +82,7 @@ bool TDEBacklightDevice::canSetBrightness() {
params << TQT_DBusData::fromString(brightnessnode); params << TQT_DBusData::fromString(brightnessnode);
TQT_DBusMessage reply = hardwareControl.sendWithReply("CanSetBrightness", params); TQT_DBusMessage reply = hardwareControl.sendWithReply("CanSetBrightness", params);
if (reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) { if (reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) {
return reply[0].toVariant().value.toBool(); return reply[0].toBool();
} }
} }
} }

@ -144,7 +144,7 @@ bool TDECPUDevice::canSetGovernor() {
params << TQT_DBusData::fromInt32(coreNumber()); params << TQT_DBusData::fromInt32(coreNumber());
TQT_DBusMessage reply = hardwareControl.sendWithReply("CanSetCPUGovernor", params); TQT_DBusMessage reply = hardwareControl.sendWithReply("CanSetCPUGovernor", params);
if (reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) { if (reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) {
return reply[0].toVariant().value.toBool(); return reply[0].toBool();
} }
} }
} }

Loading…
Cancel
Save