Fixes: Crash on unloading.

This commit is contained in:
dt
2008-12-17 14:20:01 +01:00
parent b3e1723b56
commit 4d61bae46c

View File

@@ -240,8 +240,7 @@ void ProjectTreeWidget::setCurrentItem(Node *node, Project *project)
void ProjectTreeWidget::handleCurrentItemChange(const QModelIndex &current)
{
Node *node = m_model->nodeForIndex(current);
QTC_ASSERT(node, return);
// node might be 0. that's okay
bool autoSync = autoSynchronization();
setAutoSynchronization(false);
m_explorer->setCurrentNode(node);