Skip to content
Permalink
Browse files

Fix #10648 (add layer to the selected group)

  • Loading branch information
wonder-sk committed Jun 20, 2014
1 parent 708c64e commit 98959bbeeb3362eda8605bfd0ae170cd09e9dd6f
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/app/qgisapp.cpp
@@ -2364,6 +2364,14 @@ void QgisApp::updateNewLayerInsertionPoint()
{
if ( QgsLayerTreeNode* currentNode = mLayerTreeView->currentNode() )
{
// if the insertion point is actually a group, insert new layers into the group
if ( QgsLayerTree::isGroup( currentNode ) )
{
QgsProject::instance()->layerTreeRegistryBridge()->setLayerInsertionPoint( QgsLayerTree::toGroup( currentNode ), 0 );
return;
}

// otherwise just set the insertion point in front of the current node
QgsLayerTreeNode* parentNode = currentNode->parent();
if ( QgsLayerTree::isGroup( parentNode ) )
parentGroup = QgsLayerTree::toGroup( parentNode );

0 comments on commit 98959bb

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