diff --git a/src/plugins/coreplugin/welcomepagehelper.cpp b/src/plugins/coreplugin/welcomepagehelper.cpp index 79d08dc172e..e705d5406f6 100644 --- a/src/plugins/coreplugin/welcomepagehelper.cpp +++ b/src/plugins/coreplugin/welcomepagehelper.cpp @@ -592,7 +592,8 @@ bool ListItemDelegate::editorEvent(QEvent *event, QAbstractItemModel *model, { if (event->type() == QEvent::MouseButtonRelease) { const ListItem *item = index.data(ListModel::ItemRole).value(); - QTC_ASSERT(item, return false); + if (!item) + return false; auto mev = static_cast(event); if (index.isValid()) { const QPoint pos = mev->pos();