Skip to content
Permalink
Browse files

Fix tests on Travis

  • Loading branch information
nyalldawson committed Sep 21, 2018
1 parent ced9559 commit 0c79d08d055262e1f85526ae7229a503adc86e08
@@ -126,7 +126,8 @@ def initWidgets(self):
break

widget_context = QgsProcessingParameterWidgetContext()
widget_context.setMapCanvas(iface.mapCanvas())
if iface is not None:
widget_context.setMapCanvas(iface.mapCanvas())

# Create widgets and put them in layouts
for param in self.alg.parameterDefinitions():
@@ -146,7 +146,8 @@ def setupUi(self):
self.verticalLayout.addWidget(self.algorithmItem)

widget_context = QgsProcessingParameterWidgetContext()
widget_context.setMapCanvas(iface.mapCanvas())
if iface is not None:
widget_context.setMapCanvas(iface.mapCanvas())
widget_context.setModel(self.model)
widget_context.setModelChildAlgorithmId(self.childId)

0 comments on commit 0c79d08

Please sign in to comment.
You can’t perform that action at this time.