Don't set proximity close property upon component completion.
authorMohammed Sameer <msameer@foolab.org>
Wed, 11 Sep 2013 22:54:28 +0000 (01:54 +0300)
committerMohammed Sameer <msameer@foolab.org>
Wed, 11 Sep 2013 22:54:28 +0000 (01:54 +0300)
Not really needed, it triggers a QML error and it will be set anyway
when the sensor becomes active

qml/harmattan/CameraProximitySensor.qml

index 95fd20d..c2e001d 100644 (file)
@@ -24,7 +24,6 @@ import QtQuick 1.1
 import QtMobility.sensors 1.2
 
 ProximitySensor {
-    property bool close
+    property bool close: false
     onReadingChanged: close = reading.close
-    Component.onCompleted: close = reading.close
 }