Skip to content
Permalink
Browse files

[processing] fix progress reporting (fix #15521)

  • Loading branch information
alexbruy committed Sep 14, 2016
1 parent 56e8b9c commit 8ac1460d0e760b288ca20e88529737c3b5cde137
@@ -66,7 +66,7 @@ def processAlgorithm(self, progress):

# Delaunay triangulation from input point layer
progress.setText(self.tr('Creating Delaunay triangles...'))
delone_triangles = processing.runalg("qgis:delaunaytriangulation", layer, None, progress=None)['OUTPUT']
delone_triangles = processing.runalg("qgis:delaunaytriangulation", layer, None)['OUTPUT']
delaunay_layer = processing.getObject(delone_triangles)

# Get max edge length from Delaunay triangles
@@ -103,7 +103,7 @@ def processAlgorithm(self, progress):
# Dissolve all Delaunay triangles
progress.setText(self.tr('Dissolving Delaunay triangles...'))
dissolved = processing.runalg("qgis:dissolve", delaunay_layer,
True, None, None, progress=None)['OUTPUT']
True, None, None)['OUTPUT']
dissolved_layer = processing.getObject(dissolved)

# Save result
@@ -171,9 +171,6 @@ def setText(self, text):
self.setInfo(text, False)
QCoreApplication.processEvents()

def error(self, text):
self.setInfo(text, error=True)

def setParamValues(self):
pass

0 comments on commit 8ac1460

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