Branch: master

a3a78dc5 2014-05-15 20:20:52 Slávek Banko
Use new signal switchChanged for monitoring closing the lid
This resolves Bug 2052
M src/hardware.cpp
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 @@
 			if (!allUDIs.contains( hwdevice->uniqueID() )) {
 				allUDIs.append( hwdevice->uniqueID() );
 			}
+			connect(edevice, TQT_SIGNAL(switchChanged()), this, TQT_SLOT(checkLidcloseState()));
 			checkLidcloseState();
 		}
 	}