Skip to content
Permalink
Browse files
fix WMS selection
git-svn-id: http://svn.osgeo.org/qgis/trunk@14318 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 30, 2010
1 parent 5efadc1 commit 1c42e9a
Showing 1 changed file with 6 additions and 1 deletion.
@@ -672,7 +672,7 @@ void QgsWMSSourceSelect::applySelectionConstraints( QTreeWidgetItem *item )
// process child layers and style selection first
// then
// if all child layers of a group are selected, deselect them and select the group and collapse it
// if some child layers are selected, deselect the group
// if some child layers are selected, deselect the group and all parents
// otherwise keep the selection state of the group
int n = 0;
for ( int i = 0; i < item->childCount(); i++ )
@@ -692,6 +692,11 @@ void QgsWMSSourceSelect::applySelectionConstraints( QTreeWidgetItem *item )
item->child( i )->setSelected( false );
item->setExpanded( false );
}
else
{
for ( QTreeWidgetItem *parent = item->parent(); parent; parent = parent->parent() )
parent->setSelected( false );
}
}
}
else if ( styleName.isEmpty() )

0 comments on commit 1c42e9a

Please sign in to comment.