Skip to content

Commit

Permalink
[processing] restore Help button functionality in modeler (fix #17483)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Nov 23, 2017
1 parent 03e4756 commit 3a576d8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions python/plugins/processing/modeler/ModelerParametersDialog.py
Expand Up @@ -53,7 +53,8 @@

from qgis.gui import (QgsMessageBar,
QgsScrollArea,
QgsFilterLineEdit)
QgsFilterLineEdit,
QgsHelp)

from processing.gui.wrappers import WidgetWrapperFactory
from processing.gui.wrappers import InvalidParameterValue
Expand Down Expand Up @@ -362,6 +363,10 @@ def cancelPressed(self):
self.reject()

def openHelp(self):
algHelp = self._alg.help()
if algHelp is not None:
algHelp = self._alg.helpUrl()
if not algHelp:
algHelp = QgsHelp.helpUrl("processing_algs/{}/{}".format(
self._alg.provider().id(), self._alg.id())).toString()

if algHelp not in [None, ""]:
webbrowser.open(algHelp)

0 comments on commit 3a576d8

Please sign in to comment.