Skip to content

Commit

Permalink
fix WMS selection
Browse files Browse the repository at this point in the history
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.
7 changes: 6 additions & 1 deletion src/app/qgswmssourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++ )
Expand All @@ -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() )
Expand Down

0 comments on commit 1c42e9a

Please sign in to comment.