forked from qt-creator/qt-creator
Fixes: Crash on unloading.
This commit is contained in:
@@ -240,8 +240,7 @@ void ProjectTreeWidget::setCurrentItem(Node *node, Project *project)
|
||||
void ProjectTreeWidget::handleCurrentItemChange(const QModelIndex ¤t)
|
||||
{
|
||||
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);
|
||||
|
Reference in New Issue
Block a user