diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-12-12 02:01:03 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-12-12 02:12:54 +0100 |
commit | c70244211886070b82f2ca9e9b1fa2de2cd7c4c0 (patch) | |
tree | aa6f71dd999e50e8f711e50c2c01246b004a244a /tdecore/tdehw | |
parent | ef6c5d6fcbafccf6fa2a5b6b46d94ed627903a2f (diff) | |
download | tdelibs-c70244211886070b82f2ca9e9b1fa2de2cd7c4c0.tar.gz tdelibs-c70244211886070b82f2ca9e9b1fa2de2cd7c4c0.zip |
Fix detection possibility of setting cpu governor and brightness using tdehwlib-daemon
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r-- | tdecore/tdehw/tdebacklightdevice.cpp | 2 | ||||
-rw-r--r-- | tdecore/tdehw/tdecpudevice.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tdecore/tdehw/tdebacklightdevice.cpp b/tdecore/tdehw/tdebacklightdevice.cpp index fdd0787b1..b3f696466 100644 --- a/tdecore/tdehw/tdebacklightdevice.cpp +++ b/tdecore/tdehw/tdebacklightdevice.cpp @@ -82,7 +82,7 @@ bool TDEBacklightDevice::canSetBrightness() { params << TQT_DBusData::fromString(brightnessnode); TQT_DBusMessage reply = hardwareControl.sendWithReply("CanSetBrightness", params); if (reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) { - return reply[0].toVariant().value.toBool(); + return reply[0].toBool(); } } } diff --git a/tdecore/tdehw/tdecpudevice.cpp b/tdecore/tdehw/tdecpudevice.cpp index d02cf77f1..c5514ff4e 100644 --- a/tdecore/tdehw/tdecpudevice.cpp +++ b/tdecore/tdehw/tdecpudevice.cpp @@ -144,7 +144,7 @@ bool TDECPUDevice::canSetGovernor() { params << TQT_DBusData::fromInt32(coreNumber()); TQT_DBusMessage reply = hardwareControl.sendWithReply("CanSetCPUGovernor", params); if (reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) { - return reply[0].toVariant().value.toBool(); + return reply[0].toBool(); } } } |