mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
strip trailing slash from the help path if necessary (fix #16156)
This commit is contained in:
parent
0dc1257701
commit
9bd0d7a7bb
@ -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 ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user