all repos — mgba @ 51030d98fd01679834abf8d99812ac3e5fe0793e

mGBA Game Boy Advance Emulator

Qt: Fix camera on Windows
Vicki Pfau vi@endrift.com
Tue, 05 Mar 2019 18:20:30 -0800
commit

51030d98fd01679834abf8d99812ac3e5fe0793e

parent

1fd8b1b299e785ee75df6ec45bfb6a8d434af684

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/InputController.cppsrc/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 -}+}