only do auto focus if caf has not succedded
authorMohammed Sameer <msameer@foolab.org>
Fri, 14 Dec 2012 20:36:13 +0000 (22:36 +0200)
committerMohammed Sameer <msameer@foolab.org>
Fri, 14 Dec 2012 20:36:13 +0000 (22:36 +0200)
qml/ImagePage.qml

index 3a0eb70..f8023bd 100644 (file)
@@ -89,7 +89,11 @@ CameraPage {
                         interval: 200
                         running: capture.pressed
                         repeat: false
-                        onTriggered: cam.autoFocus.startAutoFocus();
+                        onTriggered: {
+                                if (cam.autoFocus.cafStatus != AutoFocus.Success) {
+                                        cam.autoFocus.startAutoFocus();
+                                }
+                        }
                 }
         }