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

vector layer properties now checks if config widget factory supports layer (fixes #20240) #8366

Conversation

ricardogsilva
Copy link
Contributor

Description

This PR fixes #20240

The layer properties dialog now explicitly checks if the config widget factory supports the current layer. The relevant supportsLayer method was already in the QgsMapLayerConfigWidgetFactory's API, it just wasn't being used in the rest of the code.

Checklist

  • Commit messages are descriptive and explain the rationale for changes
  • Commits which fix bugs include fixes #11111 in the commit message next to the description
  • I have read the QGIS Coding Standards and this PR complies with them
  • This PR passes all existing unit tests (test results will be reported by travis-ci after opening this PR)
  • I have run the scripts/prepare-commit.sh script before each commit

…layer

previously the factory would always be used, even if it did not
support the active layer

fixes qgis#20240
@ricardogsilva ricardogsilva changed the title vector layer properties now checks if config widget factory supports layer vector layer properties now checks if config widget factory supports layer (fixes #20240) Oct 29, 2018
@nyalldawson
Copy link
Collaborator

Thanks @ricardogsilva, nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants