diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp index e07c17cb04e..9fc14da9992 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp +++ b/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp @@ -467,7 +467,10 @@ void FormEditorView::bindingPropertiesChanged(const QList &prop void FormEditorView::documentMessagesChanged(const QList &errors, const QList &) { - if (!errors.isEmpty()) + QTC_ASSERT(model(), return); + QTC_ASSERT(model()->rewriterView(), return); + + if (!errors.isEmpty() && !model()->rewriterView()->hasIncompleteTypeInformation()) m_formEditorWidget->showErrorMessageBox(errors); else m_formEditorWidget->hideErrorMessageBox();