[processing] use groupId when constructing help URL

This commit is contained in:
Alexander Bruy 2017-12-15 12:11:46 +02:00
parent 3692fcdb96
commit a0ce648175
2 changed files with 3 additions and 3 deletions

View File

@ -364,8 +364,8 @@ class ModelerParametersDialog(QDialog):
def openHelp(self):
algHelp = self._alg.helpUrl()
if not algHelp:
algHelp = QgsHelp.helpUrl("processing_algs/{}/{}".format(
self._alg.provider().id(), self._alg.id())).toString()
algHelp = QgsHelp.helpUrl("processing_algs/{}/{}.html{}".format(
self._alg.provider().id(), self._alg.groupId(), self._alg.name())).toString()
if algHelp not in [None, ""]:
webbrowser.open(algHelp)

View File

@ -230,7 +230,7 @@ void QgsProcessingAlgorithmDialogBase::openHelp()
QUrl algHelp = mAlgorithm->helpUrl();
if ( algHelp.isEmpty() )
{
algHelp = QgsHelp::helpUrl( QStringLiteral( "processing_algs/%1/%2" ).arg( mAlgorithm->provider()->id(), mAlgorithm->id() ) );
algHelp = QgsHelp::helpUrl( QStringLiteral( "processing_algs/%1/%2.html#%3" ).arg( mAlgorithm->provider()->id(), mAlgorithm->groupId(), mAlgorithm->name() ) );
}
if ( !algHelp.isEmpty() )