diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp index b699f900395..5986f548763 100644 --- a/src/plugins/projectexplorer/projectmodels.cpp +++ b/src/plugins/projectexplorer/projectmodels.cpp @@ -617,6 +617,12 @@ void FlatModel::added(FolderNode* parentNode, const QList &newNodeList) qCDebug(logger()) << "FlatModel::added" << parentNode->path() << newNodeList.size() << "nodes"; QModelIndex parentIndex = indexForNode(parentNode); // Old list + + if (newNodeList.isEmpty()) { + qCDebug(logger()) << " newNodeList empty"; + return; + } + QHash >::const_iterator it = m_childNodes.constFind(parentNode); if (it == m_childNodes.constEnd()) { if (!parentIndex.isValid()) {