Bug report #19174

"Add layers to a group" does not respect the setting "By default new layers added to the map should be displayed"

Added by Casper Børgesen over 6 years ago. Updated almost 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Unknown
Affected QGIS version:3.1(master) Regression?:No
Operating System:windows 10 x64 Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27003

Description

Steps to reproduce:

  1. Under QGIS/Settings/Options/Rendering/Rendering behaviour, make sure that "By default new layers added to the map should be displayed" is unchecked.
  2. Open a FileGDB data set.
  3. Check the "Add layers to a group" when selecting which feature classes to add as layers.
  4. The added layers has been added and are shown even though they shouldn't.

Associated revisions

Revision 3ec853f6
Added by Casper Børgesen almost 6 years ago

Fix for bug report #19174 - hide newly added layer(s) when in group

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 #19174

Revision a14f5e4a
Added by Luigi Pirelli almost 6 years ago

Merge pull request #8521 from chau-intl/master

Hide newly added layer(s) when in group. Fixes #19174

Revision 651b6569
Added by Casper Børgesen almost 6 years ago

Fix for bug report #19174 - hide newly added layer(s) when in group

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 #19174

Revision a7ab47dd
Added by Luigi Pirelli almost 6 years ago

Merge pull request #8603 from chau-intl/release-3_4

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

History

#1 Updated by Casper Børgesen almost 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF