Skip to content

Commit ff32054

Browse files
committedApr 7, 2017
Fix some breakage
1 parent 3739c3a commit ff32054

File tree

8 files changed

+6
-11
lines changed

8 files changed

+6
-11
lines changed
 

‎python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ def __init__(self, descriptionfile):
9797
self.module = None
9898

9999
def getCopy(self):
100-
newone = Grass7Algorithm(self.descriptionFile)
101-
return newone
100+
return self
102101

103102
def name(self):
104103
return self._name

‎python/plugins/processing/algs/r/RAlgorithm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ class RAlgorithm(GeoAlgorithm):
7070
RPLOTS = 'RPLOTS'
7171

7272
def getCopy(self):
73-
newone = RAlgorithm(self.descriptionFile)
74-
return newone
73+
return self
7574

7675
def __init__(self, descriptionFile, script=None):
7776
GeoAlgorithm.__init__(self)

‎python/plugins/processing/algs/saga/SagaAlgorithm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ def __init__(self, descriptionfile):
7878
self._group = ''
7979

8080
def getCopy(self):
81-
newone = SagaAlgorithm(self.descriptionFile)
82-
return newone
81+
return self
8382

8483
def icon(self):
8584
if self._icon is None:

‎python/plugins/processing/core/Processing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ def addScripts(folder):
139139
for script in scripts:
140140
script.allowEdit = False
141141
script._icon = provider._icon
142-
script.provider = provider
143142
provider.externalAlgs.extend(scripts)
144143
provider.refreshAlgorithms()
145144

‎python/plugins/processing/modeler/ModelerAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class ModelerAlgorithm(GeoAlgorithm):
226226
CANVAS_SIZE = 4000
227227

228228
def getCopy(self):
229-
newone = ModelerAlgorithm()
229+
newone = self
230230

231231
newone.algs = {}
232232
for algname, alg in self.algs.items():

‎python/plugins/processing/modeler/ModelerDialog.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,6 @@ def fillAlgorithmTreeUsingProviders(self):
632632

633633
if len(groups) > 0:
634634
providerItem = QTreeWidgetItem()
635-
provider = QgsApplication.processingRegistry().providerById(provider_id)
636635
providerItem.setText(0, provider.name())
637636
providerItem.setToolTip(0, provider.name())
638637
providerItem.setIcon(0, provider.icon())

‎python/plugins/processing/preconfigured/PreconfiguredAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def flags(self):
5656
return QgsProcessingAlgorithm.FlagHideFromModeler
5757

5858
def getCopy(self):
59-
newone = PreconfiguredAlgorithm(self.descriptionFile)
59+
newone = self
6060
newone.outputs = []
6161
newone._name = self._name
6262
newone._group = self._group

‎python/plugins/processing/script/ScriptAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(self, descriptionFile, script=None):
7272
self.defineCharacteristicsFromFile()
7373

7474
def getCopy(self):
75-
newone = ScriptAlgorithm(self.descriptionFile)
75+
newone = self
7676
return newone
7777

7878
def icon(self):

0 commit comments

Comments
 (0)
Please sign in to comment.