Qt: Fix non-Multimedia build (fixes #2180)

This commit is contained in:
Vicki Pfau 2021-05-14 23:01:12 -07:00
parent ec9594887c
commit 2d87cc1cf2
1 changed files with 1 additions and 1 deletions

View File

@ -94,11 +94,11 @@ InputController::InputController(int playerId, QWidget* topLevel, QObject* paren
InputControllerImage* image = static_cast<InputControllerImage*>(context);
image->w = w;
image->h = h;
image->p->m_cameraActive = true;
if (image->image.isNull()) {
image->image.load(":/res/no-cam.png");
}
#ifdef BUILD_QT_MULTIMEDIA
image->p->m_cameraActive = true;
QByteArray camera = image->p->m_config->getQtOption("camera").toByteArray();
if (!camera.isNull()) {
image->p->m_cameraDevice = camera;