Skip to content

Commit

Permalink
Don't load GRASS algs if GRASS is not installed
Browse files Browse the repository at this point in the history
Fixes qgis_process that incorrectly lists GRASS algorithms among the available processing algs even when GRASS is not installed in the system
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Aug 4, 2020
1 parent 35d0bbc commit ef11ad3
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -128,6 +128,12 @@ def createAlgsList(self):
return algs

def loadAlgorithms(self):
version = Grass7Utils.installedVersion(True)
if version is None:
QgsMessageLog.logMessage(self.tr('Problem with GRASS installation: GRASS was not found or is not correctly installed'),
self.tr('Processing'), Qgis.Critical)
return

self.algs = self.createAlgsList()
for a in self.algs:
self.addAlgorithm(a)
Expand Down

0 comments on commit ef11ad3

Please sign in to comment.