When removing the root node, don't retain the pointer to it...

This commit is contained in:
dfighter1985 2014-09-17 20:51:45 +02:00
parent 5578b791f3
commit d6251c2a1a

View file

@ -176,6 +176,9 @@ void ExpressionEditor::onDeleteSelection()
}
}
if( item == m_pvt->m_root )
m_pvt->m_root = NULL;
m_scene->removeItem( item );
delete item;
}