forked from qt-creator/qt-creator
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:
committed by
Tim Jenssen
parent
e8b3b8140b
commit
204970fc0c
@@ -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*/)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user