mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-15 00:04:37 -04:00
Fix refreshConnections: only emit if it's a root item
and propagate down to the tree until the root is reached.
This commit is contained in:
parent
420dc829f0
commit
704ac54561
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user