We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98621d7 commit 40abe14Copy full SHA for 40abe14
src/gui/layertree/qgslayertreeviewdefaultactions.cpp
@@ -363,7 +363,8 @@ void QgsLayerTreeViewDefaultActions::moveToTop()
363
{
364
QMap <QgsLayerTreeGroup *, int> groupInsertIdx;
365
int insertIdx;
366
- Q_FOREACH ( QgsLayerTreeNode *n, mView->selectedNodes() )
+ const QList< QgsLayerTreeNode * > selectedNodes = mView->selectedNodes();
367
+ for ( QgsLayerTreeNode *n : selectedNodes )
368
369
QgsLayerTreeGroup *parentGroup = qobject_cast<QgsLayerTreeGroup *>( n->parent() );
370
QgsLayerTreeNode *clonedNode = n->clone();
0 commit comments