Qt: Fix camera on Windows
Vicki Pfau vi@endrift.com
Tue, 05 Mar 2019 18:20:30 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
M
src/platform/qt/InputController.cpp
→
src/platform/qt/InputController.cpp
@@ -806,9 +806,9 @@ if (m_camera) {
needsRestart = m_camera->state() == QCamera::ActiveState; } m_camera = std::make_unique<QCamera>(name); - connect(m_camera.get(), &QCamera::statusChanged, this, &InputController::prepareCamSettings); + connect(m_camera.get(), &QCamera::statusChanged, this, &InputController::prepareCamSettings, Qt::QueuedConnection); if (needsRestart) { setupCam(); } #endif -}+}