Commit be1f6621 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlOutline: Make QTC_ASSERT more meaningful

Split up QTC_ASSERT to maybe find out why, from times to times,
the original assert fails.
parent 07cac219
......@@ -526,6 +526,7 @@ AST::Node *QmlOutlineModel::nodeForIndex(const QModelIndex &index) const
QTC_ASSERT(index.isValid() && (index.model() == this), return 0);
if (index.isValid()) {
QmlOutlineItem *item = static_cast<QmlOutlineItem*>(itemFromIndex(index));
QTC_ASSERT(item, return 0);
QTC_ASSERT(m_itemToNode.contains(item), return 0);
return m_itemToNode.value(item);
}
......
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