forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
9bee9d53dd
commit
0d849b9f29
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user