[processing][gdal] Fix stylesheet for gdal algorithms

This commit is contained in:
Nyall Dawson 2018-09-26 08:57:11 +10:00
parent 7977450796
commit 7a45702b83
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ class GdalAlgorithm(QgsProcessingAlgorithm):
return self.__class__()
def createCustomParametersWidget(self, parent):
return GdalAlgorithmDialog(self)
return GdalAlgorithmDialog(self, parent=parent)
def flags(self):
return QgsProcessingAlgorithm.FlagSupportsBatch # cannot cancel!

View File

@ -55,8 +55,8 @@ from processing.tools.dataobjects import createContext
class GdalAlgorithmDialog(AlgorithmDialog):
def __init__(self, alg):
super().__init__(alg)
def __init__(self, alg, parent=None):
super().__init__(alg, parent=parent)
self.mainWidget().parametersHaveChanged()
def getParametersPanel(self, alg, parent):