Emit canCaptureChanged() for the active mode when we get an error
[harmattan/cameraplus] / lib / qtcamdevice_p.h
index 35bfe17..de62e6c 100644 (file)
@@ -114,6 +114,10 @@ public:
 
     QMetaObject::invokeMethod(q_ptr, "error", Q_ARG(QString, message),
                              Q_ARG(int, code), Q_ARG(QString, debug));
+
+    if (active) {
+      QMetaObject::invokeMethod(active, "canCaptureChanged", Qt::QueuedConnection);
+    }
   }
 
   void _d_stopped() {