Skip to content
Permalink
Browse files

Fix refreshConnections: only emit if it's a root item

and propagate down to the tree until the root is reached.
  • Loading branch information
elpaso committed Sep 18, 2017
1 parent 420dc82 commit 704ac5456173ef69e26794aff9b013c7f3239de8
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/core/qgsdataitem.cpp
@@ -345,8 +345,16 @@ void QgsDataItem::refresh()

void QgsDataItem::refreshConnections()
{
refresh();
emit connectionsChanged();
// Walk up until the root node is reached
if ( mParent )
{
mParent->refreshConnections();
}
else
{
refresh();
emit connectionsChanged();
}
}

void QgsDataItem::refresh( const QVector<QgsDataItem *> &children )

0 comments on commit 704ac54

Please sign in to comment.
You can’t perform that action at this time.