mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
add anchor to help URL only if necessary
This commit is contained in:
parent
23c09fc121
commit
eaa97f367e
@ -87,7 +87,11 @@ QUrl QgsHelp::helpUrl( const QString& key )
|
||||
continue;
|
||||
}
|
||||
helpUrl = QUrl::fromLocalFile( filePath );
|
||||
helpUrl.setFragment( helpPath.mid( helpPath.lastIndexOf( "#" ) + 1, -1 ) );
|
||||
int pos = helpPath.lastIndexOf( "#" );
|
||||
if ( pos != -1 )
|
||||
{
|
||||
helpUrl.setFragment( helpPath.mid( helpPath.lastIndexOf( "#" ) + 1, -1 ) );
|
||||
}
|
||||
}
|
||||
|
||||
helpFound = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user