Skip to content

Commit

Permalink
[processing] Disable cancel button for GDAL algorithms
Browse files Browse the repository at this point in the history
The provider doesn't support cancelation

(cherry-picked from d164f8f)
  • Loading branch information
nyalldawson committed Apr 6, 2018
1 parent a7096ae commit 5a9fd0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/gdal/GdalAlgorithm.py
Expand Up @@ -59,6 +59,9 @@ def createInstance(self, config={}):
def createCustomParametersWidget(self, parent):
return GdalAlgorithmDialog(self)

def flags(self):
return QgsProcessingAlgorithm.FlagSupportsBatch # cannot cancel!

def getConsoleCommands(self, parameters, context, feedback, executing=True):
return None

Expand Down

0 comments on commit 5a9fd0c

Please sign in to comment.