Stop autofocus when image capture has ended.
[harmattan/cameraplus] / qml / ImageOverlay.qml
index c90f69e..c9416f3 100644 (file)
@@ -41,10 +41,10 @@ Item {
     ImageMode {
         id: imageMode
         camera: cam
-        onPreviewAvailable: {
-            overlay.previewAvailable(preview)
-            cam.autoFocus.stopAutoFocus()
-        }
+
+        onCaptureEnded: cam.autoFocus.stopAutoFocus()
+
+        onPreviewAvailable: overlay.previewAvailable(preview)
 
         onSaved: mountProtector.unlock()
     }