Skip to content
Permalink
Browse files
fix WMS selection
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14318 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 30, 2010
1 parent 0bd9990 commit 9103ac5471579fc6e055016f84b575fb4100813b
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/qgswmssourceselect.cpp
@@ -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 9103ac5

Please sign in to comment.