Skip to content

Commit

Permalink
Fix Range wrapper to allow Range parameters to be added in modeler. N…
Browse files Browse the repository at this point in the history
…ot yet fully integrated as input paramter
  • Loading branch information
luipir authored and nyalldawson committed Sep 7, 2018
1 parent 6e7ff28 commit bc8a460
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions python/plugins/processing/gui/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,12 +812,9 @@ def parentParameterChanged(self, wrapper):
class RangeWidgetWrapper(WidgetWrapper):

def createWidget(self):
if self.dialogType in (DIALOG_STANDARD, DIALOG_BATCH):
widget = RangePanel(self.parameterDefinition())
widget.hasChanged.connect(lambda: self.widgetValueHasChanged.emit(self))
return widget
#else:
# return ModelerNumberInputPanel(self.param, self.dialog)
widget = RangePanel(self.parameterDefinition())
widget.hasChanged.connect(lambda: self.widgetValueHasChanged.emit(self))
return widget

def setValue(self, value):
if value is None or value == NULL:
Expand Down

0 comments on commit bc8a460

Please sign in to comment.