mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix some breakage
This commit is contained in:
parent
3739c3aa51
commit
ff32054da6
@ -97,8 +97,7 @@ class Grass7Algorithm(GeoAlgorithm):
|
||||
self.module = None
|
||||
|
||||
def getCopy(self):
|
||||
newone = Grass7Algorithm(self.descriptionFile)
|
||||
return newone
|
||||
return self
|
||||
|
||||
def name(self):
|
||||
return self._name
|
||||
|
@ -70,8 +70,7 @@ class RAlgorithm(GeoAlgorithm):
|
||||
RPLOTS = 'RPLOTS'
|
||||
|
||||
def getCopy(self):
|
||||
newone = RAlgorithm(self.descriptionFile)
|
||||
return newone
|
||||
return self
|
||||
|
||||
def __init__(self, descriptionFile, script=None):
|
||||
GeoAlgorithm.__init__(self)
|
||||
|
@ -78,8 +78,7 @@ class SagaAlgorithm(GeoAlgorithm):
|
||||
self._group = ''
|
||||
|
||||
def getCopy(self):
|
||||
newone = SagaAlgorithm(self.descriptionFile)
|
||||
return newone
|
||||
return self
|
||||
|
||||
def icon(self):
|
||||
if self._icon is None:
|
||||
|
@ -139,7 +139,6 @@ class Processing(object):
|
||||
for script in scripts:
|
||||
script.allowEdit = False
|
||||
script._icon = provider._icon
|
||||
script.provider = provider
|
||||
provider.externalAlgs.extend(scripts)
|
||||
provider.refreshAlgorithms()
|
||||
|
||||
|
@ -226,7 +226,7 @@ class ModelerAlgorithm(GeoAlgorithm):
|
||||
CANVAS_SIZE = 4000
|
||||
|
||||
def getCopy(self):
|
||||
newone = ModelerAlgorithm()
|
||||
newone = self
|
||||
|
||||
newone.algs = {}
|
||||
for algname, alg in self.algs.items():
|
||||
|
@ -632,7 +632,6 @@ class ModelerDialog(BASE, WIDGET):
|
||||
|
||||
if len(groups) > 0:
|
||||
providerItem = QTreeWidgetItem()
|
||||
provider = QgsApplication.processingRegistry().providerById(provider_id)
|
||||
providerItem.setText(0, provider.name())
|
||||
providerItem.setToolTip(0, provider.name())
|
||||
providerItem.setIcon(0, provider.icon())
|
||||
|
@ -56,7 +56,7 @@ class PreconfiguredAlgorithm(GeoAlgorithm):
|
||||
return QgsProcessingAlgorithm.FlagHideFromModeler
|
||||
|
||||
def getCopy(self):
|
||||
newone = PreconfiguredAlgorithm(self.descriptionFile)
|
||||
newone = self
|
||||
newone.outputs = []
|
||||
newone._name = self._name
|
||||
newone._group = self._group
|
||||
|
@ -72,7 +72,7 @@ class ScriptAlgorithm(GeoAlgorithm):
|
||||
self.defineCharacteristicsFromFile()
|
||||
|
||||
def getCopy(self):
|
||||
newone = ScriptAlgorithm(self.descriptionFile)
|
||||
newone = self
|
||||
return newone
|
||||
|
||||
def icon(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user