Skip to content
Snippets Groups Projects
Commit b1a44e8e authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.itemLibrary: crash fix

parent 9ada2a3a
No related branches found
No related tags found
No related merge requests found
......@@ -285,6 +285,8 @@ void ItemLibraryWidget::setSearchFilter(const QString &searchFilter)
void ItemLibraryWidget::setModel(Model *model)
{
m_d->model = model;
if (!model)
return;
setItemLibraryInfo(model->metaInfo().itemLibraryInfo());
updateModel();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment