Commit 19203ebb authored by Tim Jenssen's avatar Tim Jenssen Committed by Thomas Hartmann

QmlDesigner: clear texteditor view statusbar

 - when puppet is restarted
 - when the view is attached (switching document, switching mode)

Change-Id: I06a4acf78a18b893bca9f7cd3d2bae74dc3459aa
Reviewed-by: Thomas Hartmann's avatarThomas Hartmann <thomas.hartmann@qt.io>
parent b1157e4e
......@@ -93,6 +93,7 @@ TextEditorView::~TextEditorView()
void TextEditorView::modelAttached(Model *model)
{
Q_ASSERT(model);
m_widget->clearStatusBar();
AbstractView::modelAttached(model);
......
......@@ -205,6 +205,7 @@ void NodeInstanceView::restartProcess()
if (rootNodeInstance().isValid())
rootNodeInstance().setError({});
emitInstanceErrorChange({});
emitDocumentMessage({}, {});
if (m_restartProcessTimerId)
killTimer(m_restartProcessTimerId);
......
......@@ -598,7 +598,8 @@ void AbstractView::emitDocumentMessage(const QString &error)
void AbstractView::emitDocumentMessage(const QList<DocumentMessage> &errors, const QList<DocumentMessage> &warnings)
{
model()->d->setDocumentMessages(errors, warnings);
if (model())
model()->d->setDocumentMessages(errors, warnings);
}
void AbstractView::emitCustomNotification(const QString &identifier)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment