From 5cf8fbabda4e2570a3115ae3ef8f4715c04b5bd8 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 10 Apr 2017 14:15:00 +0200 Subject: [PATCH] QmlDesigner: Fix Crash Task-number: QTCREATORBUG-17998 Change-Id: Ic0ad46455a0e56af3082c1d9ce8995a7f07c2238 Reviewed-by: Tim Jenssen --- src/plugins/qmljseditor/qmljsoutline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmljseditor/qmljsoutline.cpp b/src/plugins/qmljseditor/qmljsoutline.cpp index ea90a99c669..ffe938e543a 100644 --- a/src/plugins/qmljseditor/qmljsoutline.cpp +++ b/src/plugins/qmljseditor/qmljsoutline.cpp @@ -134,7 +134,7 @@ void QmlJSOutlineWidget::setEditor(QmlJSEditorWidget *editor) connect(m_editor, &QmlJSEditorWidget::outlineModelIndexChanged, this, &QmlJSOutlineWidget::updateSelectionInTree); - connect(m_editor->qmlJsEditorDocument()->outlineModel(), &QmlOutlineModel::updated, [this] () { + connect(m_editor->qmlJsEditorDocument()->outlineModel(), &QmlOutlineModel::updated, this, [this] () { m_treeView->expandAll(); m_editor->updateOutlineIndexNow(); });