Skip to content
Permalink
Browse files

strip trailing slash from the help path if necessary (fix #16156)

  • Loading branch information
alexbruy committed Feb 7, 2017
1 parent 0dc1257 commit 9bd0d7a7bb1ebf528751f7b58201a4b86a590e7c
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/gui/qgshelp.cpp
@@ -53,7 +53,15 @@ QUrl QgsHelp::helpUrl( const QString& key )

Q_FOREACH ( const QString& path, paths )
{
fullPath = path;
if ( path.endsWith( "\\" ) || path.endsWith( "/" ) )
{
fullPath = path.left( path.size() - 1 );
}
else
{
fullPath = path;
}

Q_FOREACH ( const QString& var, scope->variableNames() )
{
QRegularExpression rx( QStringLiteral( "(<!\\$\\$)*(\\$%1)" ).arg( var ) );

0 comments on commit 9bd0d7a

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