From 5fa5c0e20ccd35592d3b79ff3beb720f2c52dbce Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Fri, 14 Sep 2012 13:20:29 +0300 Subject: [PATCH] Emit canCaptureChanged() for the active mode when we get an error --- lib/qtcamdevice_p.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/qtcamdevice_p.h b/lib/qtcamdevice_p.h index 35bfe17..de62e6c 100644 --- a/lib/qtcamdevice_p.h +++ b/lib/qtcamdevice_p.h @@ -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() { -- 2.25.1