summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-05-16 03:20:14 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-05-16 03:20:52 +0200
commita3a78dc564239fb0a0c51f4ac878c8f7b88e7471 (patch)
treedc8e7313a08b12021c064bcc1054787ac0444495 /src
parentf43aac0e44bdcf6d5fd8f1d150bdb6908baf9bea (diff)
downloadtdepowersave-a3a78dc564239fb0a0c51f4ac878c8f7b88e7471.tar.gz
tdepowersave-a3a78dc564239fb0a0c51f4ac878c8f7b88e7471.zip
Use new signal switchChanged for monitoring closing the lid
This resolves Bug 2052
Diffstat (limited to 'src')
-rw-r--r--src/hardware.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hardware.cpp b/src/hardware.cpp
index cb4e98c..92d2b36 100644
--- a/src/hardware.cpp
+++ b/src/hardware.cpp
@@ -603,6 +603,7 @@ bool HardwareInfo::intialiseHWInfo() {
if (!allUDIs.contains( hwdevice->uniqueID() )) {
allUDIs.append( hwdevice->uniqueID() );
}
+ connect(edevice, TQT_SIGNAL(switchChanged()), this, TQT_SLOT(checkLidcloseState()));
checkLidcloseState();
}
}