Bug report #4762

Inconsistent behavior of legend groups

Added by Alexander Bruy over 12 years ago. Updated about 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:GUI
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:14626

Description

Legend group checkbox works in a wrong way. Checking group also checks all layers in this group and unchecking group uncheck all layers in this group. State of layers not saved.
For example, we have group with several layers and only one layer checked (see legend-01.jpg). I can't uncheck group - when I try to do this group and all layers become checked (see legend-02.jpg).
IMHO this is wrong and illogical behavior: changing group state should not change layers state.

legend-01.jpg - Group with one layer checked (init state) (12.4 KB) Alexander Bruy, 2012-01-08 02:11 AM

legend-02.jpg - After attemp to uncheck group (12.6 KB) Alexander Bruy, 2012-01-08 02:11 AM


Related issues

Duplicated by QGIS Application - Feature request #14547: Legend group checkbox should honour visibility of layers ... Closed 2016-03-22

History

#1 Updated by Jaka Kranjc almost 12 years ago

Still present in current HEAD and I agree, this isn't the expected behaviour. Instead of forcing all the sublayers to checked/unchecked, it should just toggle their visibility. I'll try to whip up a patch in the following days.

#2 Updated by Giovanni Manghi almost 12 years ago

  • Operating System deleted (all)

Jaka Kranjc wrote:

Still present in current HEAD and I agree, this isn't the expected behaviour. Instead of forcing all the sublayers to checked/unchecked, it should just toggle their visibility. I'll try to whip up a patch in the following days.

I guess that this would be better to be discussed in the dev mailing list, rather than having it tagged as bug.

#3 Updated by Paolo Cavallini almost 12 years ago

  • Target version set to Version 2.0.0

#4 Updated by Sandro Santilli over 11 years ago

Still present. I'd also like the toggle-all behavior instead. Maybe keep the all-on all-off with a keystroke combination ? (ie: SHIFT-click)

#5 Updated by Jürgen Fischer almost 10 years ago

  • Target version changed from Version 2.0.0 to Future Release - Lower Priority

#6 Updated by Giovanni Manghi about 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#7 Updated by Alexander Bruy about 6 years ago

  • Status changed from Open to Closed
  • Description updated (diff)

Works as expected in 3.0

Also available in: Atom PDF