Skip to content

Commit 1430e93

Browse files
committed
[processing] improve SAGA version check. Fix getCopy() method
1 parent 391e2f8 commit 1430e93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, descriptionfile):
7575
self._icon = None
7676

7777
def getCopy(self):
78-
newone = SagaAlgorithm212(self.descriptionFile)
78+
newone = SagaAlgorithm(self.descriptionFile)
7979
newone.provider = self.provider
8080
return newone
8181

python/plugins/processing/algs/saga/SagaAlgorithmProvider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _loadAlgorithms(self):
8282
self.tr('Problem with SAGA installation: SAGA was not found or is not correctly installed'))
8383
return
8484

85-
if version not in ['2.3.0', '2.3.1']:
85+
if not version.startswith('2.3.'):
8686
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
8787
self.tr('Problem with SAGA installation: unsupported SAGA version found.'))
8888
return

0 commit comments

Comments
 (0)