File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -672,7 +672,7 @@ void QgsWMSSourceSelect::applySelectionConstraints( QTreeWidgetItem *item )
672
672
// process child layers and style selection first
673
673
// then
674
674
// if all child layers of a group are selected, deselect them and select the group and collapse it
675
- // if some child layers are selected, deselect the group
675
+ // if some child layers are selected, deselect the group and all parents
676
676
// otherwise keep the selection state of the group
677
677
int n = 0 ;
678
678
for ( int i = 0 ; i < item->childCount (); i++ )
@@ -692,6 +692,11 @@ void QgsWMSSourceSelect::applySelectionConstraints( QTreeWidgetItem *item )
692
692
item->child ( i )->setSelected ( false );
693
693
item->setExpanded ( false );
694
694
}
695
+ else
696
+ {
697
+ for ( QTreeWidgetItem *parent = item->parent (); parent; parent = parent->parent () )
698
+ parent->setSelected ( false );
699
+ }
695
700
}
696
701
}
697
702
else if ( styleName.isEmpty () )
You can’t perform that action at this time.
0 commit comments