If a page doesn't need the pipeline then switch to off only if the camera is idle
authorMohammed Sameer <msameer@foolab.org>
Sat, 5 Jan 2013 15:33:26 +0000 (17:33 +0200)
committerMohammed Sameer <msameer@foolab.org>
Sat, 5 Jan 2013 15:33:26 +0000 (17:33 +0200)
qml/PipelineManager.qml

index 8e5d5eb..366c3c0 100644 (file)
@@ -90,7 +90,7 @@ Item {
         },
         State {
                 name: "off"
-                when: (!Qt.application.active && camera.idle) || (currentPage && !currentPage.needsPipeline)
+                when: (!Qt.application.active && camera.idle) || (currentPage && !currentPage.needsPipeline && camera.idle)
         },
         State {
                 name: "policyLost"