qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.39k stars 2.98k forks source link

Copying 'style' copies project-level layer capabilities #49289

Open roya0045 opened 2 years ago

roya0045 commented 2 years ago

What is the bug or the crash?

I don't think this is intended and seems confusing (aside from the fact that the option is called Copy Style & Paste Style, despite covering far more information).

When copying a layer 'style' with all the categories, the layer capabilities set in the project properties are also transferred.

This seems like an error as things that are set at layer level and project level gets transfered. Those properties should not be transfered IMO.

Steps to reproduce the issue

  1. Blank project
  2. Create two layers of the same vector type
  3. Go to Project/Properties/Data Sources
  4. Change the Layer Capabilities of one layer (set required, etc)
  5. Copy the 'style' of said layer and paste it on the other one
  6. Check back in the PRojet Properties - Both have the same settings now...

Versions

3.27 Master on win 10

Supported QGIS version

New profile

Additional context

UI/UX: The name 'style' is too narrow to covers what gets copied (form, attribute table settings, notes, elevation,etc)

edaigle commented 2 years ago

I agree this is confusing, but the fact that there's a specific Copy Layer Configuration sub-option under Copy Style makes me think it's intentional. I see two options (which aren't mutually exclusive):

Any thoughts @nyalldawson ?