Rename ZoomCaptureCancel.qml to CaptureCancel.qml
[harmattan/cameraplus] / qml / ImageOverlay.qml
index 77fb6b5..1a73e78 100644 (file)
@@ -104,10 +104,11 @@ Item {
         onReleased: parent.captureImage()
     }
 
-    ZoomCaptureCancel {
+    CaptureCancel {
         anchors.fill: parent
-        zoomCapture: zoomCapture
-        onCanceled: {
+        enabled: zoomCapture.zoomPressed
+        onPressed: {
+            zoomCapture.zoomPressed = false
             if (!autoFocusTimer.running) {
                 stopAutoFocus()
             }