Skip to content

Commit a0ce648

Browse files
committedDec 15, 2017
[processing] use groupId when constructing help URL
1 parent 3692fcd commit a0ce648

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎python/plugins/processing/modeler/ModelerParametersDialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ def cancelPressed(self):
364364
def openHelp(self):
365365
algHelp = self._alg.helpUrl()
366366
if not algHelp:
367-
algHelp = QgsHelp.helpUrl("processing_algs/{}/{}".format(
368-
self._alg.provider().id(), self._alg.id())).toString()
367+
algHelp = QgsHelp.helpUrl("processing_algs/{}/{}.html{}".format(
368+
self._alg.provider().id(), self._alg.groupId(), self._alg.name())).toString()
369369

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

‎src/gui/processing/qgsprocessingalgorithmdialogbase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void QgsProcessingAlgorithmDialogBase::openHelp()
230230
QUrl algHelp = mAlgorithm->helpUrl();
231231
if ( algHelp.isEmpty() )
232232
{
233-
algHelp = QgsHelp::helpUrl( QStringLiteral( "processing_algs/%1/%2" ).arg( mAlgorithm->provider()->id(), mAlgorithm->id() ) );
233+
algHelp = QgsHelp::helpUrl( QStringLiteral( "processing_algs/%1/%2.html#%3" ).arg( mAlgorithm->provider()->id(), mAlgorithm->groupId(), mAlgorithm->name() ) );
234234
}
235235

236236
if ( !algHelp.isEmpty() )

0 commit comments

Comments
 (0)
Please sign in to comment.