From 75043690e3bca1784bc3a72fbeb88087635ca515 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 6 Mar 2019 16:42:28 +0100 Subject: [PATCH] QmlDesigner: Add QTC_ASSERT This might avoid a rare crash on macOS. Change-Id: I9ea7be826aeaaf571041c0f729bb1fc691e46687 Reviewed-by: Tim Jenssen --- .../qmldesigner/components/itemlibrary/itemlibrarywidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qmldesigner/components/itemlibrary/itemlibrarywidget.cpp b/src/plugins/qmldesigner/components/itemlibrary/itemlibrarywidget.cpp index 7d2f8db95ca..d4dea983c0e 100644 --- a/src/plugins/qmldesigner/components/itemlibrary/itemlibrarywidget.cpp +++ b/src/plugins/qmldesigner/components/itemlibrary/itemlibrarywidget.cpp @@ -318,6 +318,8 @@ void ItemLibraryWidget::setupImportTagWidget() void ItemLibraryWidget::updateModel() { + QTC_ASSERT(m_itemLibraryModel, return); + m_itemLibraryModel->update(m_itemLibraryInfo.data(), m_model.data()); updateImports(); updateSearch();