Commit 190ea1b6 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Remove double check

Change-Id: I69afdb4e8bc08e6f13951f0dc3b7e3526d115e9a
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent cc42140a
......@@ -170,8 +170,7 @@ void NavigatorView::signalHandlerPropertiesChanged(const QVector<SignalHandlerPr
void NavigatorView::nodeAboutToBeRemoved(const ModelNode &removedNode)
{
if (m_treeModel->isInTree(removedNode))
m_treeModel->removeSubTree(removedNode);
m_treeModel->removeSubTree(removedNode);
}
void NavigatorView::nodeAboutToBeReparented(const ModelNode &/*node*/, const NodeAbstractProperty &/*newPropertyParent*/, const NodeAbstractProperty &/*oldPropertyParent*/, AbstractView::PropertyChangeFlags /*propertyChange*/)
......@@ -182,8 +181,8 @@ void NavigatorView::nodeReparented(const ModelNode &node, const NodeAbstractProp
{
bool blocked = blockSelectionChangedSignal(true);
if (m_treeModel->isInTree(node))
m_treeModel->removeSubTree(node);
m_treeModel->removeSubTree(node);
if (node.isInHierarchy())
m_treeModel->addSubTree(node);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment