Skip to content
Browse files
Fix creation of widget wrappers via metadata parameters
  • Loading branch information
nyalldawson committed Jun 22, 2017
1 parent 1b696a7 commit 8af308d2779dafeb89940205a812509aa49d9969
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/gui/
@@ -1254,14 +1254,14 @@ class WidgetWrapperFactory:
def create_wrapper(param, dialog, row=0, col=0):

if hasattr(param, 'metadata'):
if param.metadata().get('widget_wrapper', None) is not None:
return WidgetWrapperFactory.create_wrapper_from_metadata(param, dialog, row, col)
return WidgetWrapperFactory.create_wrapper_from_class(param, dialog, row, col)

def create_wrapper_from_metadata(param, dialog, row=0, col=0):
wrapper = param.metadata.get('widget_wrapper', None)
wrapper = param.metadata().get('widget_wrapper', None)
params = {}
# wrapper metadata should be a dict with class key
if isinstance(wrapper, dict):

0 comments on commit 8af308d

Please sign in to comment.