diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp index d57bae3583a..aeaa3c1e9d1 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp +++ b/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp @@ -529,7 +529,7 @@ void FormEditorWidget::showEvent(QShowEvent *event) { QWidget::showEvent(event); - const bool wasEnabled = isEnabled(); + const bool wasEnabled = m_formEditorView->isEnabled(); m_formEditorView->setEnabled(true); if (!wasEnabled && m_formEditorView->model()) {