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

do not enable default Duplicate Feature and Digitize action for geometryless layers (refs #57916) #60657

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

alexbruy
Copy link
Contributor

Description

Disable default Duplicate Feature and Digitize action for geometry-less layers, as it makes no sense for geeometry-less layer. The Duplicate feature will still be enabled as it is usable and make sense when called from attribute table.

This PR introduces new flag MapLayerActionFlag::EnableOnlyIfHasGeometry which indicates that action should be shown/enabled only for layers with geometry.

Partial fix for #57916.

@github-actions github-actions bot added this to the 3.42.0 milestone Feb 18, 2025
Copy link

github-actions bot commented Feb 18, 2025

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit b58d983)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit b58d983)

@alexbruy alexbruy added GUI/UX Related to QGIS application GUI or User Experience backport release-3_40 labels Feb 18, 2025
@nyalldawson nyalldawson merged commit 3d44213 into qgis:master Feb 19, 2025
43 checks passed
@alexbruy alexbruy deleted the default-actions-no-geometry branch February 20, 2025 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-3_40 GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants