Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport] Hide newly added layer(s) when in group. Fixes #19174 #8603

Merged
merged 1 commit into from
Dec 4, 2018

Conversation

chau-intl
Copy link
Contributor

Backport of #8521.

When loading a single layer QGIS will set it as invisible if the user have chosen so (new_layers_visible=false) in the settings. When a data set contains more than one layer and the user
chooses "Add layers to a group" the layers are added as visible no matter what.

This commit is fixing that problem for both GDAL and OGR data sets by setting both the group and its layers as invisible/unchecked.

Fixes qgis#19174
@luipir
Copy link
Contributor

luipir commented Dec 4, 2018

tnx @chau-intl, wait for an happy travis before to merge

@luipir luipir changed the title [backport] Fix for bug report #19174 - hide newly added layer(s) when in group [backport] Hide newly added layer(s) when in group. Fixes #19174 Dec 4, 2018
@luipir luipir merged commit a7ab47d into qgis:release-3_4 Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants