status -> state
This commit is contained in:
parent
339a9c28e1
commit
bd6b1b6e90
1 changed files with 1 additions and 1 deletions
|
@ -1100,7 +1100,7 @@ void PencilTestPopup::showEvent(QShowEvent* event) {
|
|||
|
||||
// reload camera
|
||||
if (m_currentCamera) {
|
||||
if (m_currentCamera->state() == QCamera::UnloadedStatus)
|
||||
if (m_currentCamera->state() == QCamera::UnloadedState)
|
||||
m_currentCamera->load();
|
||||
if (m_currentCamera->state() == QCamera::LoadedState)
|
||||
m_currentCamera->start();
|
||||
|
|
Loading…
Reference in a new issue