You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vector layer properties dialogs can be extended by plugin authors by leveraging @QgsMapLayerConfigWidgetFactory@. This class defines the @supportsLayer()@ method, which would be useful for only attaching a custom properties panel if the layer meets some requirements (e.g. if it is a postgis layer). However, this method is never called by @QgsVectorLayerProperties::addPropertiesPageFactory()@, which results in the custom properties panel being shown all the time.
This issue seems fairly easy to fix, as it is just a matter of adding an @if@ clause that checks the result of the factory's @supportsLayer()@ method, similarly to the already existing check for @supportLayerPropertiesDialog@
Related issue(s): #28060 (relates)
Redmine related issue(s): 20239
The text was updated successfully, but these errors were encountered:
This issue seems fairly easy to fix, as it is just a matter of adding an if clause that checks the result of the factory's supportsLayer() method, similarly to the already existing check for supportLayerPropertiesDialog
Could you please provide a patch or better, a pull-request?
qgib
added
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Vectors
Related to general vector layer handling (not specific data formats)
Easy fix
labels
May 25, 2019
Author Name: Ricardo Silva (Ricardo Silva)
Original Redmine Issue: 20240
Affected QGIS version: 3.3(master)
Redmine category:vectors
Vector layer properties dialogs can be extended by plugin authors by leveraging @QgsMapLayerConfigWidgetFactory@. This class defines the @supportsLayer()@ method, which would be useful for only attaching a custom properties panel if the layer meets some requirements (e.g. if it is a postgis layer). However, this method is never called by @QgsVectorLayerProperties::addPropertiesPageFactory()@, which results in the custom properties panel being shown all the time.
This issue seems fairly easy to fix, as it is just a matter of adding an @if@ clause that checks the result of the factory's @supportsLayer()@ method, similarly to the already existing check for @supportLayerPropertiesDialog@
Related issue(s): #28060 (relates)
Redmine related issue(s): 20239
The text was updated successfully, but these errors were encountered: