Skip to content
Permalink
Browse files

[processing] improve SAGA version check. Fix getCopy() method

  • Loading branch information
alexbruy committed Feb 14, 2017
1 parent 391e2f8 commit 1430e933409c4164b89ff45714b420fc28ed4ba8
@@ -75,7 +75,7 @@ def __init__(self, descriptionfile):
self._icon = None

def getCopy(self):
newone = SagaAlgorithm212(self.descriptionFile)
newone = SagaAlgorithm(self.descriptionFile)
newone.provider = self.provider
return newone

@@ -82,7 +82,7 @@ def _loadAlgorithms(self):
self.tr('Problem with SAGA installation: SAGA was not found or is not correctly installed'))
return

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

0 comments on commit 1430e93

Please sign in to comment.
You can’t perform that action at this time.