Skip to content
Snippets Groups Projects
Commit 4d61bae4 authored by dt's avatar dt
Browse files

Fixes: Crash on unloading.

parent b3e1723b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment