Skip to content
Permalink
Browse files

[processing] use groupId when constructing help URL

  • Loading branch information
alexbruy committed Dec 15, 2017
1 parent 3692fcd commit a0ce648175b94b29b752836f87222720f827ed0f
@@ -364,8 +364,8 @@ def cancelPressed(self):
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)
@@ -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() )

0 comments on commit a0ce648

Please sign in to comment.
You can’t perform that action at this time.