ProjectExplorer: Add a soft assertion

Task-number: QTCREATORBUG-15246
Change-Id: Ide3d94f6a72579626feb0f031c5381518db45326
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-10-28 09:16:40 +02:00
committed by Orgad Shaneh
parent 9bee9d53dd
commit 0d849b9f29

View File

@@ -276,6 +276,7 @@ int ProjectTreeWidget::expandedCount(Node *node)
void ProjectTreeWidget::rowsInserted(const QModelIndex &parent, int start, int end) void ProjectTreeWidget::rowsInserted(const QModelIndex &parent, int start, int end)
{ {
Node *node = m_model->nodeForIndex(parent); Node *node = m_model->nodeForIndex(parent);
QTC_ASSERT(node, return);
const QString path = node->path().toString(); const QString path = node->path().toString();
const QString displayName = node->displayName(); const QString displayName = node->displayName();