QmlDesigner: Only show warnings when opening document

Otherwise the warnings become too annoying, since they are
also triggered by undo/redo.
Do not disable the form editor in case of warnings.

Task-number: QTCREATORBUG-16306
Change-Id: Ieb1d6072269935e420e9cf988c900e1af792686f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2017-03-21 17:03:17 +01:00
committed by Tim Jenssen
parent e8b3b8140b
commit 204970fc0c
2 changed files with 0 additions and 5 deletions

View File

@@ -307,9 +307,6 @@ void FormEditorView::documentMessagesChanged(const QList<DocumentMessage> &error
formEditorWidget()->showErrorMessageBox(errors);
else
formEditorWidget()->hideErrorMessageBox();
if (!warnings.isEmpty())
formEditorWidget()->showWarningMessageBox(warnings);
}
void FormEditorView::customNotification(const AbstractView * /*view*/, const QString &identifier, const QList<ModelNode> &/*nodeList*/, const QList<QVariant> &/*data*/)

View File

@@ -286,8 +286,6 @@ void FormEditorWidget::showWarningMessageBox(const QList<DocumentMessage> &warni
errorWidget()->setWarnings(warnings);
errorWidget()->setVisible(true);
m_graphicsView->setDisabled(true);
m_toolBox->setDisabled(true);
}
ZoomAction *FormEditorWidget::zoomAction() const