Skip to content

Commit

Permalink
[processing] improve SAGA version check. Fix getCopy() method
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 14, 2017
1 parent 391e2f8 commit 1430e93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/saga/SagaAlgorithm.py
Expand Up @@ -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

Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit 1430e93

Please sign in to comment.